summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2/subnet.py
diff options
context:
space:
mode:
authorCarl Baldwin <carl@ecbaldwin.net>2016-10-13 20:29:04 +0000
committerSteve Martinelli <s.martinelli@gmail.com>2016-10-19 00:27:49 +0000
commitd373d76d1dc60a604d7750219be5573bbf903600 (patch)
tree21a7116bebe96e23cb849bb4a0c4bc6e4e9770ad /openstackclient/network/v2/subnet.py
parent5e3ec1b42faf7dc49722b58829b6c2cf5c15da79 (diff)
downloadpython-openstackclient-d373d76d1dc60a604d7750219be5573bbf903600.tar.gz
Reset allocation pools to [] instead of ''
the sdk expects subnet allocation pools to be reset to an empty array, not an empty string. Currently this results in an error message: "Invalid input for allocation_pools. Reason: Invalid data format for IP pool" Change-Id: I7cc84b9c8e4abdbd2c91e5d591ad31f0849c1a83 Closes-Bug: #1634672
Diffstat (limited to 'openstackclient/network/v2/subnet.py')
-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)