commit d7cad3a7c337a4adcabfa577070b9f715d69e30b
Author: Zhiqiang Fan <email address hidden>
Date: Sun Sep 27 10:06:59 2015 -0600
print usage when no argument is specified for python3
When running just sahara' under python3, we will get the error:
ERROR: b"'Namespace' object has no attribute 'func'"
This is because map() is used to decode sys.argv, but under Python3
it returns a map object which is an iterable. Some code later tries
to use this in a boolean context and it will always return True,
even if it's empty.
Reviewed: https:/ /review. openstack. org/228257 /git.openstack. org/cgit/ openstack/ python- saharaclient/ commit/ ?id=d7cad3a7c33 7a4adcabfa57707 0b9f715d69e30b
Committed: https:/
Submitter: Jenkins
Branch: master
commit d7cad3a7c337a4a dcabfa577070b9f 715d69e30b
Author: Zhiqiang Fan <email address hidden>
Date: Sun Sep 27 10:06:59 2015 -0600
print usage when no argument is specified for python3
When running just sahara' under python3, we will get the error:
ERROR: b"'Namespace' object has no attribute 'func'"
This is because map() is used to decode sys.argv, but under Python3
it returns a map object which is an iterable. Some code later tries
to use this in a boolean context and it will always return True,
even if it's empty.
Change-Id: I508b093e308146 45b2bd4c32cf469 204bb696207
Closes-Bug: #1295356