mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-18 16:31:26 -07:00
nmcli: do not convert undefined lists to empty strings (#4813)
* do not convert undefined lists to empty strings * add changelog fragment (#4813)
This commit is contained in:
parent
e51221896b
commit
72faebffc6
3 changed files with 41 additions and 1 deletions
|
@ -1836,7 +1836,10 @@ class Nmcli(object):
|
|||
|
||||
@staticmethod
|
||||
def list_to_string(lst):
|
||||
return ",".join(lst or [""])
|
||||
if lst is None:
|
||||
return None
|
||||
else:
|
||||
return ",".join(lst)
|
||||
|
||||
@staticmethod
|
||||
def settings_type(setting):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue