mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
IBM_Storage: fixed a bug - Unwanted arguments cause failure (#56357)
* IBM_Storage: fixed a bug which caused several of our modules to pass unwanted arguments and fail * IBM_Storage: Added a changelog for 56357 bug
This commit is contained in:
parent
110b8ba660
commit
ef0851dcd4
2 changed files with 4 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- ibm_storage - Added a check for null fields in ibm_storage utils module.
|
|
@ -81,6 +81,8 @@ def build_pyxcli_command(fields):
|
||||||
""" Builds the args for pyxcli using the exact args from ansible"""
|
""" Builds the args for pyxcli using the exact args from ansible"""
|
||||||
pyxcli_args = {}
|
pyxcli_args = {}
|
||||||
for field in fields:
|
for field in fields:
|
||||||
|
if not fields[field]:
|
||||||
|
continue
|
||||||
if field in AVAILABLE_PYXCLI_FIELDS and fields[field] != '':
|
if field in AVAILABLE_PYXCLI_FIELDS and fields[field] != '':
|
||||||
pyxcli_args[field] = fields[field]
|
pyxcli_args[field] = fields[field]
|
||||||
return pyxcli_args
|
return pyxcli_args
|
||||||
|
|
Loading…
Reference in a new issue