openstack-python-openstackc.../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
..
api Blacken openstackclient.api 2023-05-10 10:51:30 +01:00
common Add pagination helpers 2023-11-03 23:16:18 +00:00
compute Merge "Add pagination helpers" 2023-11-07 08:47:24 +00:00
identity Allow multiple --remove-tag in project set 2023-06-08 18:22:48 +10:00
image Merge "Adds command `image metadef object delete`" 2023-11-22 11:05:26 +00:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Fix clearing of dns_domain and description on a network by setting to empty strings 2023-11-24 12:36:07 +01:00
object Add pagination helpers 2023-11-03 23:16:18 +00:00
tests Fix clearing of dns_domain and description on a network by setting to empty strings 2023-11-24 12:36:07 +01:00
volume Merge "Add pagination helpers" 2023-11-07 08:47:24 +00:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Blacken everything else 2023-05-10 10:51:30 +01:00