nmcli: do not convert undefined lists to empty strings (#4813) (#4834)

* 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:
patchback[bot] 2022-06-13 12:13:05 +02:00 committed by GitHub
parent 1206900488
commit 100fffb4c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 1 deletions

View file

@ -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):