Pure-Storage-Ansible / FlashArray-Collection

Ansible Collection for Pure Storage FlashArray
GNU General Public License v3.0
19 stars 21 forks source link

purefa_info host subset erroring out looking for a key referencing a target array host #456

Closed StephenEGibson closed 9 months ago

StephenEGibson commented 9 months ago

Describe the bug purefa_info is erroring out with what appears to be a lookup for a host on the target system

To Reproduce Steps to reproduce the behavior:

Expected behavior The module returns the info for the hosts on the local system.

Screenshots Traceback (most recent call last): File "AnsiballZ_purefa_info.py", line 107, in _ansiballz_main() File "AnsiballZ_purefa_info.py", line 99, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "AnsiballZ_purefa_info.py", line 47, in invoke_module runpy.run_module(mod_name='ansible_collections.purestorage.flasharray.plugins.modules.purefa_info', init_globals=dict(_module_fqn='ansible_collections.purestorage.flasharray.plugins.modules.purefa_info', _modlib_path=modlib_path), File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 224, in run_module return _run_module_code(code, init_globals, run_name, mod_spec) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 96, in _run_module_code _run_code(code, mod_globals, init_globals, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/var/folders/1w/1v06sfjj7y7f26jb1sh0hzqc7h7c0v/T/ansible_purestorage.flasharray.purefa_info_payload_0sp223ra/ansible_purestorage.flasharray.purefa_info_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_info.py", line 2363, in File "/var/folders/1w/1v06sfjj7y7f26jb1sh0hzqc7h7c0v/T/ansible_purestorage.flasharray.purefa_info_payload_0sp223ra/ansible_purestorage.flasharray.purefa_info_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_info.py", line 2288, in main File "/var/folders/1w/1v06sfjj7y7f26jb1sh0hzqc7h7c0v/T/ansible_purestorage.flasharray.purefa_info_payload_0sp223ra/ansible_purestorage.flasharray.purefa_info_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_info.py", line 1289, in generate_host_dict KeyError: ':' module_stdout: '' msg: |- MODULE FAILURE See stdout/stderr for the exact error rc: 1

Desktop (please complete the following information):

sdodsley commented 9 months ago

Please see if #447 resolves this for you

StephenEGibson commented 9 months ago

This resolves it. Thanks!