summaryrefslogtreecommitdiff
path: root/glanceclient/v1
diff options
context:
space:
mode:
authorAbhishek Talwar <abhishek.talwar@tcs.com>2015-02-19 17:34:33 +0530
committerKamil Rykowski <kamil.rykowski@intel.com>2015-03-19 10:24:34 +0100
commit6d864ef65c73905370fe9c817fb81b262714bd2d (patch)
tree49cccc2a7fa0614a17f9c654361d2d9aa2a72f3a /glanceclient/v1
parenta3eaafefbdcec0231db33c44cca718526f9c96cc (diff)
downloadpython-glanceclient-6d864ef65c73905370fe9c817fb81b262714bd2d.tar.gz
Correct help messages for image-update command
Currently when you are trying to update the location of an image which is not in queued status you will get an error from the Glance API. The help message for --location and --copy-from arguments should be updated to inform the user that it works only for images in queued status. Co-Authored-By: Abhishek Talwar <abhishek.talwar@tcs.com> Co-Authored-By: Kamil Rykowski <kamil.rykowski@intel.com> Change-Id: I82b14ffde3f301d7ffef68e984ba4ad2ae0f8b0f Closes-Bug: #1220809
Diffstat (limited to 'glanceclient/v1')
-rw-r--r--glanceclient/v1/shell.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/glanceclient/v1/shell.py b/glanceclient/v1/shell.py
index c4e53dc..0e9e35c 100644
--- a/glanceclient/v1/shell.py
+++ b/glanceclient/v1/shell.py
@@ -264,7 +264,8 @@ def do_image_create(gc, args):
'example, if the image data is stored in swift, you could '
'specify \'swift+http://tenant%%3Aaccount:key@auth_url/'
'v2.0/container/obj\'. '
- '(Note: \'%%3A\' is \':\' URL encoded.)'))
+ '(Note: \'%%3A\' is \':\' URL encoded.) '
+ 'This option only works for images in \'queued\' status.'))
@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'
@@ -274,7 +275,8 @@ def do_image_create(gc, args):
@utils.arg('--copy-from', metavar='<IMAGE_URL>',
help=('Similar to \'--location\' in usage, but this indicates that'
' the Glance server should immediately copy the data and'
- ' store it in its configured image store.'))
+ ' store it in its configured image store.'
+ ' This option only works for images in \'queued\' status.'))
@utils.arg('--is-public',
type=_bool_strict, metavar='{True,False}',
help='Make image accessible to the public.')