mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fix the initial value of a variable
This should be a dict, not a string. Fixes #37455
This commit is contained in:
@@ -52,7 +52,7 @@ class IscsiInitiatorNetworkCollector(NetworkCollector):
|
|||||||
num_cmd_elems 200 Maximum number of commands to queue to driver True
|
num_cmd_elems 200 Maximum number of commands to queue to driver True
|
||||||
"""
|
"""
|
||||||
|
|
||||||
iscsi_facts = ""
|
iscsi_facts = {}
|
||||||
iscsi_facts['iscsi_iqn'] = ""
|
iscsi_facts['iscsi_iqn'] = ""
|
||||||
if sys.platform.startswith('linux') or sys.platform.startswith('sunos'):
|
if sys.platform.startswith('linux') or sys.platform.startswith('sunos'):
|
||||||
for line in get_file_content('/etc/iscsi/initiatorname.iscsi', '').splitlines():
|
for line in get_file_content('/etc/iscsi/initiatorname.iscsi', '').splitlines():
|
||||||
|
|||||||
Reference in New Issue
Block a user