summaryrefslogtreecommitdiff
path: root/cinderclient/v1/shell.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-12-21 08:46:11 +0000
committerGerrit Code Review <review@openstack.org>2012-12-21 08:46:11 +0000
commitbf7b86748a49455ae1545f01fe5cfc9b801223aa (patch)
tree017859901ae1cec33c3003c52ba8949849588619 /cinderclient/v1/shell.py
parent9a496900964c7037db994db800bab456d57c2164 (diff)
parent24733119fe5da11bccf16d345f6f27cec8bbd06f (diff)
downloadpython-cinderclient-1.0.2.tar.gz
Merge "Add clone volume support to cinderclient."1.0.2
Diffstat (limited to 'cinderclient/v1/shell.py')
-rw-r--r--cinderclient/v1/shell.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cinderclient/v1/shell.py b/cinderclient/v1/shell.py
index 3b85c40..3dd8556 100644
--- a/cinderclient/v1/shell.py
+++ b/cinderclient/v1/shell.py
@@ -172,6 +172,14 @@ def do_show(cs, args):
'--snapshot_id',
help=argparse.SUPPRESS)
@utils.arg(
+ '--source-volid',
+ metavar='<source-volid>',
+ default=None,
+ help='Create volume from volume id (Optional, Default=None)')
+@utils.arg(
+ '--source_volid',
+ help=argparse.SUPPRESS)
+@utils.arg(
'--image-id',
metavar='<image-id>',
default=None,
@@ -227,6 +235,7 @@ def do_create(cs, args):
volume = cs.volumes.create(args.size,
args.snapshot_id,
+ args.source_volid,
args.display_name,
args.display_description,
args.volume_type,