summaryrefslogtreecommitdiff
path: root/openstackclient/volume/v2/volume.py
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2016-06-04 21:29:44 +0800
committerTang Chen <chen.tang@easystack.cn>2016-06-04 21:29:44 +0800
commit2672e37ee211bf08a4b6078668bd36a08c9c606a (patch)
treee62996ffa79fd3ac584ada99503dcfe52fbb8631 /openstackclient/volume/v2/volume.py
parent55a7ba890d9c3a53b7728efe41053b79ba1e60d3 (diff)
downloadpython-openstackclient-2672e37ee211bf08a4b6078668bd36a08c9c606a.tar.gz
Make set/unset commands in volume return normally when nothing specified
set/unset commands should ends up normally instead of logging an error when nothing is specified to modify. The main reason is: When nothing is specified, the command sets/unsets nothing, which is a normal behavior, and ends up normally. No API call fails. No error happens. Change-Id: Ib03a512650e5da90aa1ef38019772448383d0d33 Partial-bug: #1588588
Diffstat (limited to 'openstackclient/volume/v2/volume.py')
-rw-r--r--openstackclient/volume/v2/volume.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/openstackclient/volume/v2/volume.py b/openstackclient/volume/v2/volume.py
index 0e07aa78..18473da3 100644
--- a/openstackclient/volume/v2/volume.py
+++ b/openstackclient/volume/v2/volume.py
@@ -385,10 +385,6 @@ class SetVolume(command.Command):
if kwargs:
volume_client.volumes.update(volume.id, **kwargs)
- if (not kwargs and not parsed_args.property
- and not parsed_args.image_property and not parsed_args.size):
- self.app.log.error(_("No changes requested\n"))
-
class ShowVolume(command.ShowOne):
"""Display volume details"""