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

panos_custom_url_category - Import Error #142

Closed
mrichardson03 opened this issue Oct 15, 2020 · 1 comment · Fixed by #145
Closed

panos_custom_url_category - Import Error #142

mrichardson03 opened this issue Oct 15, 2020 · 1 comment · Fixed by #145
Assignees
Labels
bug Something isn't working released

Comments

@mrichardson03
Copy link
Contributor

Describe the bug

Python import error with pandevice.

Expected behavior

Shouldn't throw an exception.

Current behavior

TASK [test_panos_custom_url_category - Create] *********************************
824
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError: name 'PanDeviceError' is not defined
825
fatal: [panos-81]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_panos_custom_url_category_payload_xwwoh4bh/ansible_panos_custom_url_category_payload.zip/ansible_collections/paloaltonetworks/panos/plugins/modules/panos_custom_url_category.py\", line 127, in main\nNameError: name 'CustomUrlCategory' is not defined\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/home/runner/.ansible/tmp/ansible-tmp-1602779903.0320835-7897-179206218921119/AnsiballZ_panos_custom_url_category.py\", line 102, in <module>\n    _ansiballz_main()\n  File \"/home/runner/.ansible/tmp/ansible-tmp-1602779903.0320835-7897-179206218921119/AnsiballZ_panos_custom_url_category.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/runner/.ansible/tmp/ansible-tmp-1602779903.0320835-7897-179206218921119/AnsiballZ_panos_custom_url_category.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.paloaltonetworks.panos.plugins.modules.panos_custom_url_category', init_globals=None, run_name='__main__', alter_sys=True)\n  File \"/opt/hostedtoolcache/Python/3.9.0/x64/lib/python3.9/runpy.py\", line 210, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/opt/hostedtoolcache/Python/3.9.0/x64/lib/python3.9/runpy.py\", line 97, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/opt/hostedtoolcache/Python/3.9.0/x64/lib/python3.9/runpy.py\", line 87, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_panos_custom_url_category_payload_xwwoh4bh/ansible_panos_custom_url_category_payload.zip/ansible_collections/paloaltonetworks/panos/plugins/modules/panos_custom_url_category.py\", line 139, in <module>\n  File \"/tmp/ansible_panos_custom_url_category_payload_xwwoh4bh/ansible_panos_custom_url_category_payload.zip/ansible_collections/paloaltonetworks/panos/plugins/modules/panos_custom_url_category.py\", line 128, in main\nNameError: name 'PanDeviceError' is not defined\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Your Environment

  • Collection version: 2.1.0
  • Python: 3.9.0
  • Ansible: 2.9.14
  • PAN-OS Python library: pandevice 0.14.0
@mrichardson03 mrichardson03 added the bug Something isn't working label Oct 15, 2020
@mrichardson03 mrichardson03 self-assigned this Oct 15, 2020
github-actions bot pushed a commit that referenced this issue Oct 30, 2020
## [2.2.0](v2.1.0...v2.2.0) (2020-10-30)

### Features

* **panos_object_facts:** Support applications and application groups ([8d9c138](8d9c138))
* **panos_software:** Only download when actually needed ([4728be7](4728be7))

### Bug Fixes

* **panos_custom_url_category:** Don't use type parameter ([#147](#147)) ([f84379f](f84379f)), closes [#143](#143)
* **panos_custom_url_category:** Fix imports for pandevice ([#145](#145)) ([b268787](b268787)), closes [#142](#142)
* **panos_custom_url_category:** Set type only on PAN-OS 9.0+ ([e94c04a](e94c04a))
@github-actions
Copy link

🎉 This issue has been resolved in version 2.2.0 🎉

The release is available on Ansible Galaxy 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
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant