From f75a81000e1060d608c624ff8e3287e8c99a5123 Mon Sep 17 00:00:00 2001 From: Stuart McLaren Date: Wed, 16 Jul 2014 14:52:37 +0000 Subject: [PATCH] Use a correctly formatted example location in help Change-Id: Iea1ebc13979a61d7bed397fb79e2b2a85f00c400 Closes-bug: 1342753 --- glanceclient/v1/shell.py | 8 ++++++-- 1 file 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='', 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='', 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='', 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='', help=('Local file that contains disk image to be uploaded during' ' update. Alternatively, images can be passed to the client'