summaryrefslogtreecommitdiff
path: root/openstackclient/image/v2/image.py
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2017-10-21 00:40:48 +0000
committerGerrit Code Review <review@openstack.org>2017-10-21 00:40:48 +0000
commit3abba6ede9ea01fbdfc94a13e3252b7b98d56c34 (patch)
tree269d00d8534cd0d0e00dbecfa637d7737542f817 /openstackclient/image/v2/image.py
parent161c79f7037364d6e69e43f1d0a9c605b96ebb88 (diff)
parent4464109c7754a9287f75ec2af84398700d1450e6 (diff)
downloadpython-openstackclient-3abba6ede9ea01fbdfc94a13e3252b7b98d56c34.tar.gz
Merge "Accept 0 for --min-disk and --min-ram"
Diffstat (limited to 'openstackclient/image/v2/image.py')
-rw-r--r--openstackclient/image/v2/image.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py
index a2e45fc7..d793c459 100644
--- a/openstackclient/image/v2/image.py
+++ b/openstackclient/image/v2/image.py
@@ -749,7 +749,7 @@ class SetImage(command.Command):
"--tag",
dest="tags",
metavar="<tag>",
- default=[],
+ default=None,
action='append',
help=_("Set a tag on this image "
"(repeat option to set multiple tags)"),
@@ -860,7 +860,7 @@ class SetImage(command.Command):
for attr in copy_attrs:
if attr in parsed_args:
val = getattr(parsed_args, attr, None)
- if val:
+ if val is not None:
# Only include a value in kwargs for attributes that are
# actually present on the command line
kwargs[attr] = val