summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart McLaren <stuart.mclaren@hp.com>2014-07-16 14:52:37 +0000
committerStuart McLaren <stuart.mclaren@hp.com>2014-07-16 15:05:37 +0000
commitf75a81000e1060d608c624ff8e3287e8c99a5123 (patch)
tree04d1fe0f71845ee68e411467645cc5add76f823e
parentdbb242b776908ca50ed8557ebfe7cfcd879366c8 (diff)
downloadpython-glanceclient-f75a81000e1060d608c624ff8e3287e8c99a5123.tar.gz
Use a correctly formatted example location in help
Change-Id: Iea1ebc13979a61d7bed397fb79e2b2a85f00c400 Closes-bug: 1342753
-rw-r--r--glanceclient/v1/shell.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/glanceclient/v1/shell.py b/glanceclient/v1/shell.py
index 32915ab..10c12c1 100644
--- a/glanceclient/v1/shell.py
+++ b/glanceclient/v1/shell.py
@@ -177,7 +177,9 @@ def do_image_download(gc, args):
@utils.arg('--location', metavar='<IMAGE_URL>',
help=('URL where the data for this image already resides. For '
'example, if the image data is stored in swift, you could '
- 'specify \'swift://account:key@example.com/container/obj\'.'))
+ 'specify \'swift+http://tenant%%3Aaccount:key@auth_url/'
+ 'v2.0/container/obj\'. '
+ '(Note: \'%%3A\' is \':\' URL encoded.)'))
@utils.arg('--file', metavar='<FILE>',
help=('Local file that contains disk image to be uploaded during'
' creation. Alternatively, images can be passed to the client'
@@ -257,7 +259,9 @@ def do_image_create(gc, args):
@utils.arg('--location', metavar='<IMAGE_URL>',
help=('URL where the data for this image already resides. For '
'example, if the image data is stored in swift, you could '
- 'specify \'swift://account:key@example.com/container/obj\'.'))
+ 'specify \'swift+http://tenant%%3Aaccount:key@auth_url/'
+ 'v2.0/container/obj\'. '
+ '(Note: \'%%3A\' is \':\' URL encoded.)'))
@utils.arg('--file', metavar='<FILE>',
help=('Local file that contains disk image to be uploaded during'
' update. Alternatively, images can be passed to the client'