From 255b10df281269519526fc326df5a79a439fb13c Mon Sep 17 00:00:00 2001 From: Jake Yip Date: Sun, 29 Nov 2015 01:13:59 +1100 Subject: [PATCH] Fix help for image-create The help for image-create states that --file 'Must be present if images are not passed to the client via stdin.' However, doing image-create without --file is a valid operation - it queues a file to be created. Change-Id: I8167c6a891fa2540c84e3b888031d90a34a9b5fc --- glanceclient/v2/shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glanceclient/v2/shell.py b/glanceclient/v2/shell.py index 6b064a6b..7be90ae9 100644 --- a/glanceclient/v2/shell.py +++ b/glanceclient/v2/shell.py @@ -53,8 +53,8 @@ def get_image_schema(): ' May be used multiple times.')) @utils.arg('--file', metavar='', help=_('Local file that contains disk image to be uploaded ' - 'during creation. Must be present if images are not passed ' - 'to the client via stdin.')) + 'during creation. Alternatively, the image data can be ' + 'passed to the client via stdin.')) @utils.arg('--progress', action='store_true', default=False, help=_('Show upload progress bar.')) @utils.on_data_require_fields(DATA_FIELDS)