Skip to content

Commit d373d76

Browse files
ecbaldwinstevemar
authored andcommitted
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
1 parent 5e3ec1b commit d373d76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/network/v2/subnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ def take_action(self, parsed_args):
542542
if not parsed_args.no_allocation_pool:
543543
attrs['allocation_pools'] += obj.allocation_pools
544544
elif parsed_args.no_allocation_pool:
545-
attrs['allocation_pools'] = ''
545+
attrs['allocation_pools'] = []
546546
if 'service_types' in attrs:
547547
attrs['service_types'] += obj.service_types
548548
client.update_subnet(obj, **attrs)

0 commit comments

Comments
 (0)