From c6a85e0c1c8226f5cfbf3dd92b4cd177fa3ee119 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Mon, 9 Dec 2013 18:07:25 -0500 Subject: [PATCH] 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 --- cinderclient/v2/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py index bce7585a0..417dd0126 100644 --- a/cinderclient/v2/shell.py +++ b/cinderclient/v2/shell.py @@ -1029,7 +1029,7 @@ def do_transfer_show(cs, args): @utils.arg('volume', metavar='', help='Name or ID of the volume to extend.') -@utils.arg('new-size', +@utils.arg('new_size', metavar='', type=int, help='New size of volume in GB')