summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2/subnet.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/network/v2/subnet.py')
-rw-r--r--openstackclient/network/v2/subnet.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/openstackclient/network/v2/subnet.py b/openstackclient/network/v2/subnet.py
index fb441cbf..f51aec5b 100644
--- a/openstackclient/network/v2/subnet.py
+++ b/openstackclient/network/v2/subnet.py
@@ -141,9 +141,9 @@ def _get_attrs(client_manager, parsed_args, is_create=True):
gateway = parsed_args.gateway.lower()
if not is_create and gateway == 'auto':
- raise exceptions.CommandError("Auto option is not available"
- " for Subnet Set. Valid options are"
- " <ip-address> or none")
+ msg = _("Auto option is not available for Subnet Set. "
+ "Valid options are <ip-address> or none")
+ raise exceptions.CommandError(msg)
elif gateway != 'auto':
if gateway == 'none':
attrs['gateway_ip'] = None