1
0
Fork 0
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:
Tzur Eliyahu 2019-05-13 19:41:06 +03:00 committed by Brian Coca
parent 110b8ba660
commit ef0851dcd4
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- ibm_storage - Added a check for null fields in ibm_storage utils module.

View file

@ -81,6 +81,8 @@ def build_pyxcli_command(fields):
""" Builds the args for pyxcli using the exact args from ansible"""
pyxcli_args = {}
for field in fields:
if not fields[field]:
continue
if field in AVAILABLE_PYXCLI_FIELDS and fields[field] != '':
pyxcli_args[field] = fields[field]
return pyxcli_args