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

Fixed typo - changed leftover pandevice to panos #257

Merged
merged 2 commits into from Aug 31, 2020

Conversation

DeepSpace2
Copy link
Contributor

@DeepSpace2 DeepSpace2 commented Aug 27, 2020

Description

Changed a leftover pandevice reference to panos

Motivation and Context

Fixes a NameError: pandevice is not defined exception when calling panorama.refresh_devices method.

How Has This Been Tested?

Instead of said NameError we actually get back the list of device groups :)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

@DeepSpace2
Copy link
Contributor Author

I think the same problem also exists here:

entry.update((k, pandevice.convert_if_int(v)) for k, v in entry.items())

Should I fix it as well?

@btorresgil
Copy link
Member

@DeepSpace2 You are completely correct, on both accounts. Thank you for catching this oversight!

Yes, if you wouldn't mind fixing the convert_if_int issue too and add it to this PR, that would be amazing. Then we'll get this merged into a bug fix release quickly.

@btorresgil btorresgil self-assigned this Aug 28, 2020
@btorresgil btorresgil self-requested a review August 28, 2020 03:05
@DeepSpace2
Copy link
Contributor Author

@btorresgil Done :) thanks for merging.

@btorresgil btorresgil merged commit d4a9c3f into PaloAltoNetworks:develop Aug 31, 2020
github-actions bot pushed a commit that referenced this pull request Aug 31, 2020
### [1.0.1](v1.0.0...v1.0.1) (2020-08-31)

### Bug Fixes

* Fix NameError in refresh_devices() ([d4a9c3f](d4a9c3f)), closes [#257](#257)
@github-actions
Copy link

github-actions bot commented Aug 31, 2020

🎉 This PR is included in version 1.0.1 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants