mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
IBM_Storage: fix host_add_ports (#49420)
iscsi_name and fcaddress fields are not required by default. This commit make sure that no exception is thrown if only on field supplied
This commit is contained in:
parent
6c26256945
commit
335ee5908d
2 changed files with 8 additions and 3 deletions
|
@ -76,7 +76,7 @@ def build_pyxcli_command(fields):
|
|||
""" Builds the args for pyxcli using the exact args from ansible"""
|
||||
pyxcli_args = {}
|
||||
for field in fields:
|
||||
if field in AVAILABLE_PYXCLI_FIELDS and fields[field]:
|
||||
if field in AVAILABLE_PYXCLI_FIELDS and fields[field] != '':
|
||||
pyxcli_args[field] = fields[field]
|
||||
return pyxcli_args
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue