Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refresh_variable broken due to recent commit #444

Closed
clienthax opened this issue Apr 19, 2022 · 3 comments · Fixed by #446
Closed

refresh_variable broken due to recent commit #444

clienthax opened this issue Apr 19, 2022 · 3 comments · Fixed by #446

Comments

@clienthax
Copy link

Describe the bug

Commit 0b47a3a changed behaviour of parse_value_from_xml_last_tag to require an additional argument

refresh_variable does not pass the new required argument to parse_value_from_xml_last_tag here

var_path.parse_value_from_xml_last_tag(obj, settings)

Expected behavior

It to work

Current behavior

  File "/usr/local/lib/python3.8/dist-packages/panos/base.py", line 970, in refresh_variable
    var_path.parse_value_from_xml_last_tag(obj, settings)
TypeError: parse_value_from_xml_last_tag() missing 1 required positional argument: 'attr'

Possible solution

Add the missing argument to the caller

Steps to reproduce

Use pan-os-ansible to gather facts from a host.

Context

Gathering facts from network devices using ansible

Your Environment

  • Version used: ab4d088
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3): N/A
  • Operating System and version (desktop or mobile): N/A
  • Link to your project: N/A
@clienthax clienthax added the bug label Apr 19, 2022
@welcome-to-palo-alto-networks

🎉 Thanks for opening your first issue here! Welcome to the community!

@jhlasnik
Copy link

I also hit this same issue, rolling back to v1.6.0 has resolved my issue for the time being.

shinmog added a commit that referenced this issue Apr 27, 2022
shinmog added a commit that referenced this issue Apr 27, 2022
github-actions bot pushed a commit that referenced this issue Apr 27, 2022
### [1.7.2](v1.7.1...v1.7.2) (2022-04-27)

### Bug Fixes

* **panos.base.PanObject.refresh_variable:** Refresh works again for regular and attrib style params ([#446](#446)) ([20dd7b7](20dd7b7)), closes [#444](#444)
* **panos.policies.SecurityRule:** `hip-profiles` removed from v10.1.5+ ([#442](#442)) ([ab4d088](ab4d088)), closes [#441](#441)
@github-actions
Copy link

🎉 This issue has been resolved in version 1.7.2 🎉

The release is available on PyPI and GitHub release

Posted by semantic-release bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants