diff --git a/lib/ansible/module_utils/facts/network/iscsi.py b/lib/ansible/module_utils/facts/network/iscsi.py index 28b5e5ca6ef..ab26f898fb1 100644 --- a/lib/ansible/module_utils/facts/network/iscsi.py +++ b/lib/ansible/module_utils/facts/network/iscsi.py @@ -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():