CrowdStrike / ansible_collection_falcon

Comprehensive toolkit for streamlining your interactions with the CrowdStrike Falcon platform.
https://galaxy.ansible.com/ui/repo/published/crowdstrike/falcon/
GNU General Public License v3.0
97 stars 60 forks source link

(host_hide) - Look into recent API error messages #572

Open carlosmmatos opened 1 day ago

carlosmmatos commented 1 day ago
TASK [crowdstrike.falcon.falcon_uninstall : CrowdStrike Falcon | Remove/Hide Host from Console] ***
  Tuesday 29 October 2024  05:04:54 +0000 (0:00:00.044)       0:00:16.086 *******
  An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'resources'
  fatal: [ubuntu-20.04-falcon_uninstall -> localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/home/runner/.ansible/tmp/ansible-tmp-1730178294.691213-2997-168251539872753/AnsiballZ_host_hide.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/home/runner/.ansible/tmp/ansible-tmp-1730178294.691213-2997-168251539872753/AnsiballZ_host_hide.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/runner/.ansible/tmp/ansible-tmp-1730178294.691213-2997-168251539872753/AnsiballZ_host_hide.py\", line 47, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.crowdstrike.falcon.plugins.modules.host_hide', init_globals=dict(_module_fqn='ansible_collections.crowdstrike.falcon.plugins.modules.host_hide', _modlib_path=modlib_path),\n  File \"<frozen runpy>\", line 226, in run_module\n  File \"<frozen runpy>\", line 98, in _run_module_code\n  File \"<frozen runpy>\", line 88, in _run_code\n  File \"/tmp/ansible_crowdstrike.falcon.host_hide_payload_k2t4_x8j/ansible_crowdstrike.falcon.host_hide_payload.zip/ansible_collections/crowdstrike/falcon/plugins/modules/host_hide.py\", line 263, in <module>\n  File \"/tmp/ansible_crowdstrike.falcon.host_hide_payload_k2t4_x8j/ansible_crowdstrike.falcon.host_hide_payload.zip/ansible_collections/crowdstrike/falcon/plugins/modules/host_hide.py\", line 257, in main\n  File \"/tmp/ansible_crowdstrike.falcon.host_hide_payload_k2t4_x8j/ansible_crowdstrike.falcon.host_hide_payload.zip/ansible_collections/crowdstrike/falcon/plugins/modules/host_hide.py\", line 191, in process_hosts\nKeyError: 'resources'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}