Fix the initial value of a variable
This should be a dict, not a string. Fixes #37455
This commit is contained in:
parent
5d9090fbd7
commit
e356e13d66
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue