diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-10-14 11:04:16 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-10-14 11:04:16 +0000 |
commit | b88b510d3b6b497ba315f2e1c1d31c4ee9662912 (patch) | |
tree | 31f792b26fa7ea950166324d3e75c3a281750ba8 /glanceclient/shell.py | |
parent | 8687b05ea0eecd3d569e067edb5181aa2f83cdc4 (diff) | |
parent | a8a7c689905f816db0e73e3cf643cd5daef76932 (diff) | |
download | python-glanceclient-b88b510d3b6b497ba315f2e1c1d31c4ee9662912.tar.gz |
Merge "print usage when no argument is specified for python3"
Diffstat (limited to 'glanceclient/shell.py')
-rwxr-xr-x | glanceclient/shell.py | 3 |
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: |