only set param features when variable is not empty (#1763)

* only set param features when variable is not empty

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Topper Harly <topperharly@gmx.net>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
topperharly
2021-02-10 22:07:27 +01:00
committed by GitHub
parent 93e0aa7557
commit 562ff7efb7
2 changed files with 3 additions and 1 deletions

View File

@@ -622,7 +622,7 @@ def main():
searchdomain=module.params['searchdomain'],
force=int(module.params['force']),
pubkey=module.params['pubkey'],
features=",".join(module.params['features'] or []),
features=",".join(module.params['features']) if module.params['features'] is not None else None,
unprivileged=int(module.params['unprivileged']),
description=module.params['description'],
hookscript=module.params['hookscript'])