mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
* do not convert undefined lists to empty strings
* add changelog fragment (#4813)
(cherry picked from commit 72faebffc6
)
Co-authored-by: geichelberger <35195803+geichelberger@users.noreply.github.com>
This commit is contained in:
parent
79d85cc83c
commit
23859e0ec3
3 changed files with 41 additions and 1 deletions
|
@ -1742,7 +1742,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