summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-10-19 14:24:15 +0000
committerGerrit Code Review <review@openstack.org>2016-10-19 14:24:15 +0000
commitcf88d03957d2118e151257f6dc657d90e114e180 (patch)
treece0b9454151776b82707ba2ab62a659b7f9495f9 /openstackclient
parent6eff90c3d6058af6d2acd70a615fa7ef3379899f (diff)
parentd373d76d1dc60a604d7750219be5573bbf903600 (diff)
downloadpython-openstackclient-cf88d03957d2118e151257f6dc657d90e114e180.tar.gz
Merge "Reset allocation pools to [] instead of ''"
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/network/v2/subnet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/network/v2/subnet.py b/openstackclient/network/v2/subnet.py
index 1b778c91..f1ecb5a7 100644
--- a/openstackclient/network/v2/subnet.py
+++ b/openstackclient/network/v2/subnet.py
@@ -542,7 +542,7 @@ class SetSubnet(command.Command):
if not parsed_args.no_allocation_pool:
attrs['allocation_pools'] += obj.allocation_pools
elif parsed_args.no_allocation_pool:
- attrs['allocation_pools'] = ''
+ attrs['allocation_pools'] = []
if 'service_types' in attrs:
attrs['service_types'] += obj.service_types
client.update_subnet(obj, **attrs)