diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-06-17 06:24:35 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-06-17 06:24:35 +0000 |
| commit | 1464c8a23755f70bb60ed37abe1edf5c7e0b7203 (patch) | |
| tree | bf50f9e53bbcc4b79a128af3bf00228928d0994f /openstackclient/image | |
| parent | 2740291f491804be5f521770ee773fa62894e8a3 (diff) | |
| parent | 8a12a39ece3882af56b42898ffee0d537c96edc8 (diff) | |
| download | python-openstackclient-1464c8a23755f70bb60ed37abe1edf5c7e0b7203.tar.gz | |
Merge "Make set/unset command in identity and image pass normally when nothing specified"
Diffstat (limited to 'openstackclient/image')
| -rw-r--r-- | openstackclient/image/v2/image.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py index d20fdba6..53f9530b 100644 --- a/openstackclient/image/v2/image.py +++ b/openstackclient/image/v2/image.py @@ -817,11 +817,6 @@ class SetImage(command.Command): parsed_args.project_domain, ).id - # Checks if anything that requires getting the image - if not (kwargs or parsed_args.deactivate or parsed_args.activate): - msg = _("No arguments specified") - raise exceptions.CommandError(msg) - image = utils.find_resource( image_client.images, parsed_args.image) @@ -833,10 +828,6 @@ class SetImage(command.Command): image_client.images.reactivate(image.id) activation_status = "activated" - # Check if need to do the actual update - if not kwargs: - return {}, {} - if parsed_args.tags: # Tags should be extended, but duplicates removed kwargs['tags'] = list(set(image.tags).union(set(parsed_args.tags))) @@ -909,10 +900,6 @@ class UnsetImage(command.Command): parsed_args.image, ) - if not (parsed_args.tags or parsed_args.properties): - msg = _("No arguments specified") - raise exceptions.CommandError(msg) - kwargs = {} tagret = 0 propret = 0 |
