Cannot run playbook - get() takes exactly 1 argument (4 given)
aerove26 opened this issue · 1 comments
I attempted to run the inventory playbook but it errors out. I can run the get-system-inventory.py script but cannot run this playbook.
It errors out with: get() takes exactly 1 argument (4 given)
Has anyone encountered this before ?
sudo ansible-playbook get_system_inventory.yml
LAY [System Inventory] **************************************************************************************************************************************************************************************************************
TASK [Define output file] ************************************************************************************************************************************************************************************************************
included: /home/ec2-user/redfish-ansible-module/playbooks/create_output_file.yml for testhost
TASK [Define timestamp] **************************************************************************************************************************************************************************************************************
ok: [testhost]
TASK [Define file to place results] **************************************************************************************************************************************************************************************************
ok: [testhost]
TASK [Create dropoff directory for host] *********************************************************************************************************************************************************************************************
ok: [testhost -> localhost]
TASK [Getting system inventory] ******************************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: get() takes exactly 1 argument (4 given)
fatal: [testhost -> localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File "/tmp/ansible_3aI8Tz/ansible_module_redfish.py", line 367, in \n main()\n File "/tmp/ansible_3aI8Tz/ansible_module_redfish.py", line 224, in main\n result = rf_utils._find_systems_resource(rf_uri)\n File "/tmp/ansible_3aI8Tz/ansible_modlib.zip/ansible/module_utils/redfish_utils.py", line 104, in _find_systems_resource\n File "/tmp/ansible_3aI8Tz/ansible_modlib.zip/ansible/module_utils/redfish_utils.py", line 48, in send_get_request\nTypeError: get() takes exactly 1 argument (4 given)\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 0}
to retry, use: --limit @/home/ec2-user/redfish-ansible-module/playbooks/get_system_inventory.retry
PLAY RECAP ***************************************************************************************************************************************************************************************************************************
testhost : ok=4 changed=0 unreachable=0 failed=1
Nevermind, fixed it. Pip install requests installed an old version of requests.
worked after updating it