python-openstackclient/openstackclient
Steve Martinelli 82af038bb0 properly format error messages for volume resizing
The error messages are tuples and not substituting variables.

Before:
$ openstack volume set vol1 --size 1
Failed to set volume size: (u'New size must be greater than %s GB', 2)

$ openstack volume set vol1 --size 1
Failed to set volume size: (u'Volume is in %s state, it must be available
before size can be extended', u'error')

After:
$ openstack volume set vol2 --size 3
Failed to set volume size: New size must be greater than 4 GB

$ openstack volume set vol2 --size 3
Failed to set volume size: Volume is in error state, it must be available
before size can be extended

Change-Id: Ide6e644b1c6d1c11a9dc2f3f53c1a1837380b8d5
2016-10-15 20:29:54 -07:00
..
api Add option "--name" to command "openstack object create" 2016-09-26 22:42:10 -04:00
common Mask passwords in debug logs for auth_config_hook 2016-10-05 21:11:16 -04:00
compute Merge "Support "--no" option in aggregate set" 2016-09-29 19:22:31 +00:00
identity format token expires time to prevent json loading datetime data 2016-09-05 17:23:42 +00:00
image osc-lib: shell 2016-08-05 13:48:55 -05:00
locale Imported Translations from Zanata 2016-06-04 06:18:46 +00:00
network Merge "Add a new column and a new option the 'os port list' cmd" 2016-10-12 22:10:40 +00:00
object Add translation markers for object commands 2016-09-26 22:52:14 -04:00
tests Merge "Add a new column and a new option the 'os port list' cmd" 2016-10-12 22:10:40 +00:00
volume properly format error messages for volume resizing 2016-10-15 20:29:54 -07:00
__init__.py Change version reporting to use pbr 2013-08-02 12:11:49 -05:00
i18n.py Update translation setup 2016-01-29 08:18:50 +09:00
shell.py Improve output of supported API versions 2016-10-07 11:02:53 +00:00