mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00: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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user