mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -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
1206900488
commit
100fffb4c1
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