Fix the initial value of a variable

This should be a dict, not a string.

Fixes #37455
This commit is contained in:
Toshio Kuratomi 2018-03-18 08:06:55 -07:00
parent 5d9090fbd7
commit e356e13d66

View file

@ -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():