diff options
| author | Tang Chen <chen.tang@easystack.cn> | 2016-06-03 12:21:45 +0800 |
|---|---|---|
| committer | Tang Chen <chen.tang@easystack.cn> | 2016-06-08 14:31:17 +0800 |
| commit | e3270cdfd8fce895b8f32b8e23e48399be6ac85c (patch) | |
| tree | 638ab2ef59028c1f01ed8d9a4d53cfbbb27ba1a3 /openstackclient/network/v2/subnet.py | |
| parent | 84506a6b71c103b50bbf5b5f0b534e2d35950780 (diff) | |
| download | python-openstackclient-e3270cdfd8fce895b8f32b8e23e48399be6ac85c.tar.gz | |
Make set/unset commands in network return normally when nothing specified
set/unset commands should ends up normally instead of raising
an exception 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.
This patch also adds a releasenote for both network, and volume
commands that fix patch has been merged.
Change-Id: I78c348066078decd350417a431f3b8bea8fcf9ef
Partial-bug: #1588588
Diffstat (limited to 'openstackclient/network/v2/subnet.py')
| -rw-r--r-- | openstackclient/network/v2/subnet.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/openstackclient/network/v2/subnet.py b/openstackclient/network/v2/subnet.py index e7e1be99..8e378c7e 100644 --- a/openstackclient/network/v2/subnet.py +++ b/openstackclient/network/v2/subnet.py @@ -373,9 +373,6 @@ class SetSubnet(command.Command): obj = client.find_subnet(parsed_args.subnet, ignore_missing=False) attrs = _get_attrs(self.app.client_manager, parsed_args, is_create=False) - if not attrs: - msg = "Nothing specified to be set" - raise exceptions.CommandError(msg) if 'dns_nameservers' in attrs: attrs['dns_nameservers'] += obj.dns_nameservers if 'host_routes' in attrs: |
