summaryrefslogtreecommitdiff
path: root/glanceclient/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'glanceclient/shell.py')
-rwxr-xr-xglanceclient/shell.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/glanceclient/shell.py b/glanceclient/shell.py
index 33480f3..7ed9e79 100755
--- a/glanceclient/shell.py
+++ b/glanceclient/shell.py
@@ -759,7 +759,8 @@ class HelpFormatter(argparse.HelpFormatter):
def main():
try:
- OpenStackImagesShell().main(map(encodeutils.safe_decode, sys.argv[1:]))
+ argv = [encodeutils.safe_decode(a) for a in sys.argv[1:]]
+ OpenStackImagesShell().main(argv)
except KeyboardInterrupt:
utils.exit('... terminating glance client', exit_code=130)
except Exception as e: