optimized cachedimages sync

This commit is contained in:
Qu Xuan
2020-09-02 22:00:14 +08:00
parent bb68d7f2c2
commit dc1c6c754c
31 changed files with 227 additions and 87 deletions
+2 -2
View File
@@ -43,11 +43,11 @@ func init() {
}
shellutils.R(&ImageOptions{}, "image-show", "Show image", func(cli *openstack.SRegion, args *ImageOptions) error {
image, err := cli.GetImages("", "", args.ID)
image, err := cli.GetImage(args.ID)
if err != nil {
return err
}
printObject(image[0])
printObject(image)
return nil
})