openstack-python-openstackc.../openstackclient/network
Florian Streibelt ce0765facb
Fix clearing of dns_domain and description on a network by setting to empty strings
After setting a default dns_domain on a network

 openstack net set --dns-domain 'example.com.' <NETWORKID>

the setting could not be reverted back to an empty string using

 openstack net set --dns-domain '' <NETWORKID>

and the call also does not emit any error.

The same is true for the description of a network.

Reason was using the parsed argument directly as a condition instead of
comparing against None -- dropping the empty string as valid value.

The name parameter already accepted an empty string.

This change also adds a testcase for dns_domain, description and the
network name parameter, checking if the empty string is forwarded.

Change-Id: Ia7b9738205002b028c19e4f397411c86469cba1a
2023-11-24 12:36:07 +01:00
..
v2 Fix clearing of dns_domain and description on a network by setting to empty strings 2023-11-24 12:36:07 +01:00
__init__.py Network CRUD 2014-06-24 15:00:25 -06:00
client.py Blacken openstackclient.network 2023-05-10 10:51:30 +01:00
common.py Blacken openstackclient.network 2023-05-10 10:51:30 +01:00
utils.py Add support for default security group rule CRUDs 2023-10-19 16:04:22 +02:00