Seeing . error while using panos_static_route module.

L0 Member

Seeing . error while using panos_static_route module.



   We are Seeing below error while using panos_static_route module. Can you please help to resolve it.


An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'ConnectionHelper' object has no attribute 'apply_state'

fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1572933157.85-280592588763105/\", line 114, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1572933157.85-280592588763105/\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1572933157.85-280592588763105/\", line 49, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/tmp/ansible_panos_static_route_payload_mG2gGW/\", line 214, in <module>\n File \"/tmp/ansible_panos_static_route_payload_mG2gGW/\", line 208, in main\nAttributeError: 'ConnectionHelper' object has no attribute 'apply_state'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

I have used ansible module as below:

provider: '{{ panos_provider }}'
name: 'Test-One'
destination: '10.x.x.x/28'
nexthop: '10.x.x.x'
template: "{{panos_template}}"
virtual_router: "{{panos_vr_name}}"
state: 'present'




L4 Transporter

Just so others are aware, this was resolved by upgrading his role code to the latest version:

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!