mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +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
|
||||
"""
|
||||
|
||||
iscsi_facts = ""
|
||||
iscsi_facts = {}
|
||||
iscsi_facts['iscsi_iqn'] = ""
|
||||
if sys.platform.startswith('linux') or sys.platform.startswith('sunos'):
|
||||
for line in get_file_content('/etc/iscsi/initiatorname.iscsi', '').splitlines():
|
||||
|
||||
Reference in New Issue
Block a user