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:
geichelberger 2022-06-13 11:56:10 +02:00 committed by GitHub
parent e51221896b
commit 72faebffc6
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):