Files
python-openstackclient/openstackclient
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
..
2023-05-10 10:51:30 +01:00
2023-11-03 23:16:18 +00:00
2023-11-07 08:47:24 +00:00
2023-11-03 23:16:18 +00:00
2023-11-07 08:47:24 +00:00
2018-04-15 12:23:06 +09:00
2017-03-21 17:23:09 +08:00
2023-05-10 10:51:30 +01:00