python-novaclient/novaclient
Johannes Erdfelt 656cf91f89 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: Ie15f2fa8ee93ab26490e371133fa0f944430737b
Closes-bug: 1295356
2014-03-25 08:49:05 -07:00
..
openstack oslo sync apiclient and cliutils 2014-02-27 13:30:34 -08:00
tests Fix error when run with no arguments on Python 3 2014-03-25 08:49:05 -07:00
v1_1 Merge "Correct the help sting of volume-type-delete" 2014-03-22 08:09:34 +00:00
v3 Merge "Allow user ID for authentication" 2014-03-21 19:51:23 +00:00
__init__.py Migrate to pbr. 2013-05-19 10:00:38 +03:00
auth_plugin.py Fix i18n messages in novaclient, part I 2014-01-28 14:56:00 -05:00
base.py Adds ability to boot a server via the Nova V3 API 2014-01-28 23:29:16 +10:30
client.py Merge "Allow user ID for authentication" 2014-03-21 19:51:23 +00:00
crypto.py Enables H403 pep8 rules 2013-12-14 15:16:20 +00:00
exceptions.py Print a useful message for unknown server errors 2014-03-20 15:54:19 -07:00
extension.py Fix Copyright Headers from LLC to Foundation 2013-03-13 20:12:23 -04:00
service_catalog.py Enables H403 pep8 rules 2013-12-14 15:16:20 +00:00
shell.py Fix error when run with no arguments on Python 3 2014-03-25 08:49:05 -07:00
utils.py Merge "Fix i18n messages in novaclient, part I" 2014-02-10 02:25:23 +00:00