1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-05 09:44:59 +01:00

Small fix to image info

Use default storage if user does not specify, so it doesn't output
"Unable to associate string 'None' with backend".

Signed-off-by: Yu Qi Zhang <jerzhang@redhat.com>

Closes: #933
Approved by: baude
This commit is contained in:
Yu Qi Zhang
2017-03-07 21:09:40 +00:00
committed by Atomic Bot
parent 31396a9de6
commit 4411d09ff8
2 changed files with 2 additions and 1 deletions

View File

@@ -113,7 +113,7 @@ class Info(Atomic):
if self.args.force:
# The user wants information on a remote image
be = self.beu.get_backend_from_string(self.args.storage)
be = self.beu.get_backend_from_string(str_backend=self.args.storage or storage)
img_obj = be.make_remote_image(self.image)
else:
# The image is local

View File

@@ -190,6 +190,7 @@ _atomic_images_info() {
"
local all_options="$options_with_args
-h --help
--remote
"
case "$prev" in