diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-08-24 20:20:08 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-08-24 20:20:08 +0000 |
| commit | 97d1bbdafddf2e3e9cf94b56df1349dc29e2a6b0 (patch) | |
| tree | 3b5552a55af2dca24bfcf69c7c7f39f456dcbf50 /openstackclient/network/v2/network.py | |
| parent | 75245d9553be55ee921977f0cc779e394c6c9bf7 (diff) | |
| parent | c2b0cec6e3cfa7b5ebd9762abca9179581d8722e (diff) | |
| download | python-openstackclient-97d1bbdafddf2e3e9cf94b56df1349dc29e2a6b0.tar.gz | |
Merge "Create message variables for exceptions"
Diffstat (limited to 'openstackclient/network/v2/network.py')
| -rw-r--r-- | openstackclient/network/v2/network.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openstackclient/network/v2/network.py b/openstackclient/network/v2/network.py index 24d71976..4ee37e26 100644 --- a/openstackclient/network/v2/network.py +++ b/openstackclient/network/v2/network.py @@ -208,7 +208,8 @@ class SetNetwork(command.Command): if parsed_args.shared is not None: body['shared'] = parsed_args.shared if body == {}: - raise exceptions.CommandError("Nothing specified to be set") + msg = "Nothing specified to be set" + raise exceptions.CommandError(msg) update_method = getattr(client, "update_network") update_method(_id, {'network': body}) return |
