Fix broken argument name in v2 volume extend routine

The new_size attribute was misspelled, causing the volume extend
operation to fail with:

    ERROR: 'Namespace' object has no attribute 'new_size'

This happens only with the v2 API, v1 works fine.

Change-Id: Icb6b5008dad229f21e7906d9b5342d41f5e760cd
Closes-Bug: #1259552
This commit is contained in:
Jon Bernard
2013-12-09 18:07:25 -05:00
parent 8fc5ae480e
commit c6a85e0c1c

View File

@@ -1029,7 +1029,7 @@ def do_transfer_show(cs, args):
@utils.arg('volume', metavar='<volume>', @utils.arg('volume', metavar='<volume>',
help='Name or ID of the volume to extend.') help='Name or ID of the volume to extend.')
@utils.arg('new-size', @utils.arg('new_size',
metavar='<new_size>', metavar='<new_size>',
type=int, type=int,
help='New size of volume in GB') help='New size of volume in GB')