You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently running vManage version 20.4.2.1. Attempting to run module vmanage_device_attachment and the template attachment succeeds but when it hits this point in the code it appears to error out ->
This is the error message I receive (truncated to get to the point):
File "/home/saunderb/.ansible/tmp/ansible-tmp-1642707552.1295621-220635-193965079848664/AnsiballZ_vmanage_device_attachment.py", line 47, in invoke_module\n runpy.run_module(mod_name='ansible.modules.vmanage_device_attachment', init_globals=dict(_module_fqn='ansible.modules.vmanage_device_attachment', _modlib_path=modlib_path),\n File "/usr/lib/python3.8/runpy.py", line 207, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File "/usr/lib/python3.8/runpy.py", line 87, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_vmanage_device_attachment_payload_5frjq5fl/ansible_vmanage_device_attachment_payload.zip/ansible/modules/vmanage_device_attachment.py", line 233, in \n File "/tmp/ansible_vmanage_device_attachment_payload_5frjq5fl/ansible_vmanage_device_attachment_payload.zip/ansible/modules/vmanage_device_attachment.py", line 230, in main\n File "/tmp/ansible_vmanage_device_attachment_payload_5frjq5fl/ansible_vmanage_device_attachment_payload.zip/ansible/modules/vmanage_device_attachment.py", line 226, in run_module\n File "/tmp/ansible_vmanage_device_attachment_payload_5frjq5fl/ansible_vmanage_device_attachment_payload.zip/ansible/module_utils/viptela.py", line 134, in logout\n File "/tmp/ansible_vmanage_device_attachment_payload_5frjq5fl/ansible_vmanage_device_attachment_payload.zip/ansible/module_utils/viptela.py", line 177, in request\n File "/usr/lib/python3/dist-packages/requests/models.py", line 897, in json\n return complexjson.loads(self.text, **kwargs)\n File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads\n return _default_decoder.decode(s)\n File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode\n obj, end = self.raw_decode(s)\n File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode\n return self.scan_once(s, idx=_w(s, idx).end())\nsimplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
If I comment out viptela.logout() the module runs without issue.
The text was updated successfully, but these errors were encountered:
@briantsaunders - I am curious if this is an Ansible version issue. We mainly use the sdwan-devops repo to test the Ansible modules in this repo. It uses ansible==2.10.7. What version are you using?
Currently running vManage version 20.4.2.1. Attempting to run module
vmanage_device_attachment
and the template attachment succeeds but when it hits this point in the code it appears to error out ->python-viptela/ansible/modules/viptela/vmanage_device_attachment.py
Line 230 in 37bdd39
This is how I'm calling the module:
This is the error message I receive (truncated to get to the point):
File "/home/saunderb/.ansible/tmp/ansible-tmp-1642707552.1295621-220635-193965079848664/AnsiballZ_vmanage_device_attachment.py", line 47, in invoke_module\n runpy.run_module(mod_name='ansible.modules.vmanage_device_attachment', init_globals=dict(_module_fqn='ansible.modules.vmanage_device_attachment', _modlib_path=modlib_path),\n File "/usr/lib/python3.8/runpy.py", line 207, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File "/usr/lib/python3.8/runpy.py", line 87, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_vmanage_device_attachment_payload_5frjq5fl/ansible_vmanage_device_attachment_payload.zip/ansible/modules/vmanage_device_attachment.py", line 233, in \n File "/tmp/ansible_vmanage_device_attachment_payload_5frjq5fl/ansible_vmanage_device_attachment_payload.zip/ansible/modules/vmanage_device_attachment.py", line 230, in main\n File "/tmp/ansible_vmanage_device_attachment_payload_5frjq5fl/ansible_vmanage_device_attachment_payload.zip/ansible/modules/vmanage_device_attachment.py", line 226, in run_module\n File "/tmp/ansible_vmanage_device_attachment_payload_5frjq5fl/ansible_vmanage_device_attachment_payload.zip/ansible/module_utils/viptela.py", line 134, in logout\n File "/tmp/ansible_vmanage_device_attachment_payload_5frjq5fl/ansible_vmanage_device_attachment_payload.zip/ansible/module_utils/viptela.py", line 177, in request\n File "/usr/lib/python3/dist-packages/requests/models.py", line 897, in json\n return complexjson.loads(self.text, **kwargs)\n File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads\n return _default_decoder.decode(s)\n File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode\n obj, end = self.raw_decode(s)\n File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode\n return self.scan_once(s, idx=_w(s, idx).end())\nsimplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
If I comment out
viptela.logout()
the module runs without issue.The text was updated successfully, but these errors were encountered: