python-openstackclient/openstackclient/volume/v2
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
..
__init__.py Add support for volume v2 API 2015-05-30 11:26:14 -07:00
backup.py Add warning message for --state option of set command in volume 2016-09-26 02:42:47 +00:00
consistency_group.py Implement "consistency group list" command 2016-09-28 09:31:04 +08:00
qos_specs.py Support error handling for delete commands in volumev2 2016-07-14 17:49:26 +08:00
service.py Add "volume service set" command 2016-08-17 10:42:28 +08:00
snapshot.py Add warning message for --state option of set command in volume 2016-09-26 02:42:47 +00:00
volume_transfer_request.py Implement "volume transfer request show/accept" command 2016-09-22 17:11:53 +08:00
volume_type.py Do not show "os-volume-type-access:is_public" property of volume type 2016-09-07 16:40:54 +08:00
volume.py properly format error messages for volume resizing 2016-10-15 20:29:54 -07:00