python-openstackclient/openstackclient/volume
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
..
v1 Add and modify options for "volume create" command 2016-09-28 10:13:56 +08:00
v2 properly format error messages for volume resizing 2016-10-15 20:29:54 -07:00
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
client.py osc-lib: shell 2016-08-05 13:48:55 -05:00