commit 656cf91f898ff1a20986f358bedc64f410f5ee4a
Author: Johannes Erdfelt <email address hidden>
Date: Thu Mar 20 13:29:10 2014 -0700
Fix error when run with no arguments on Python 3
Python 3 changed the map built-in to return an iterable instead of a list.
When tested in a boolean context, this always returns True, even if it
would not return anything when iterated.
Instead of the usage being printed, this error was printed:
ERROR: 'Namespace' object has no attribute 'func'
Use list comprehension instead to ensure that an iterable isn't returned
Reviewed: https:/ /review. openstack. org/81911 /git.openstack. org/cgit/ openstack/ python- novaclient/ commit/ ?id=656cf91f898 ff1a20986f358be dc64f410f5ee4a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 656cf91f898ff1a 20986f358bedc64 f410f5ee4a
Author: Johannes Erdfelt <email address hidden>
Date: Thu Mar 20 13:29:10 2014 -0700
Fix error when run with no arguments on Python 3
Python 3 changed the map built-in to return an iterable instead of a list.
When tested in a boolean context, this always returns True, even if it
would not return anything when iterated.
Instead of the usage being printed, this error was printed:
ERROR: 'Namespace' object has no attribute 'func'
Use list comprehension instead to ensure that an iterable isn't returned
Change-Id: Ie15f2fa8ee93ab 26490e371133fa0 f944430737b
Closes-bug: 1295356