From 4411d09ff88270c8210af793e7fcc78634cf83be Mon Sep 17 00:00:00 2001 From: Yu Qi Zhang Date: Tue, 7 Mar 2017 21:09:40 +0000 Subject: [PATCH] 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 Closes: #933 Approved by: baude --- Atomic/info.py | 2 +- bash/atomic | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Atomic/info.py b/Atomic/info.py index a26f95b..9c776ac 100644 --- a/Atomic/info.py +++ b/Atomic/info.py @@ -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 diff --git a/bash/atomic b/bash/atomic index cd486bc..62db3c0 100644 --- a/bash/atomic +++ b/bash/atomic @@ -190,6 +190,7 @@ _atomic_images_info() { " local all_options="$options_with_args -h --help + --remote " case "$prev" in