Skip to content

Commit

Permalink
IBM_Storage: fixed a bug which caused several of our modules to pass …
Browse files Browse the repository at this point in the history
…unwanted arguments and fail
  • Loading branch information
tzurE committed May 13, 2019
1 parent c6a8e99 commit 13f5cf4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ansible/module_utils/ibm_sa_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13f5cf4

Please sign in to comment.