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

fix(panos_admpwd): Fix success criteria and update example in docs #457

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

jamesholland-uk
Copy link
Member

@jamesholland-uk jamesholland-uk commented Jul 4, 2023

Description

Fix success criteria.
Update example in docs.

Motivation and Context

Fixes #433.
Per #433, previously the test for success was too generic and was detecting a failed result as success.

Whilst testing for this PR, the example in the documentation was noted to be incorrect since changes in Ansible functionality, so the example code has also been updated.

How Has This Been Tested?

Tested locally against VM-Series and Panorama.

Screenshots (if appropriate)

Example of a previous failure, that the module detected as success:
Screenshot 2023-07-04 at 10 58 05
Example of success after the changes in this PR:
Screenshot 2023-07-04 at 10 57 45

Types of changes

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

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

@jamesholland-uk
Copy link
Member Author

Example commit messages:

  • 9.1.15-h1
Commit job 2 is in progress. Use Ctrl+C to return to command prompt
......55%75%98%..............100%
Configuration committed successfully
Commit job 3 is in progress. Use Ctrl+C to return to command prompt
...
Validation Error:
 rulebase -> nat -> rules -> test  is missing 'to'
 rulebase -> nat -> rules is invalid

  • 10.0.11-h1
Commit job 2 is in progress. Use Ctrl+C to return to command prompt
...........55%.75%98%...............100%
Configuration committed successfully
Commit job 3 is in progress. Use Ctrl+C to return to command prompt
....
Validation Error:
 rulebase -> nat -> rules -> test  is missing 'to'
 rulebase -> nat -> rules is invalid
  • 10.1.10
Commit job 2 is in progress. Use Ctrl+C to return to command prompt
............55%.70%98%.............100%
Configuration committed successfully
Commit job 3 is in progress. Use Ctrl+C to return to command prompt
....
Validation Error:
 rulebase -> nat -> rules -> test  is missing 'to'
 rulebase -> nat -> rules is invalid
  • 10.2.4-h2
Commit job 823 is in progress. Use Ctrl+C to return to command prompt
...................70%.98%...............100%
Configuration committed successfully
Commit job 835 is in progress. Use Ctrl+C to return to command prompt
....
Validation Error:
 rulebase -> nat -> rules -> test  is missing 'to'
 rulebase -> nat -> rules is invalid
  • 11.0.2
Commit job 24 is in progress. Use Ctrl+C to return to command prompt
.............70%.98%.............100%
Configuration committed successfully
Commit job 26 is in progress. Use Ctrl+C to return to command prompt
....
Validation Error:
 rulebase -> nat -> rules -> test  is missing 'to'
 rulebase -> nat -> rules is invalid

Copy link
Collaborator

@shinmog shinmog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jamesholland-uk jamesholland-uk merged commit 9ecdb65 into develop Jul 11, 2023
@jamesholland-uk jamesholland-uk deleted the fix-admpwd-success-criteria branch July 11, 2023 18:41
github-actions bot pushed a commit that referenced this pull request Jul 11, 2023
### [2.17.3](v2.17.2...v2.17.3) (2023-07-11)

### Bug Fixes

* **eda:** Make `custom_logger` argument optional ([#456](#456)) ([49ed307](49ed307))
* **panos_admpwd:** Fix success criteria and update example in docs ([#457](#457)) ([9ecdb65](9ecdb65))
* **panos_bgp_peer_group:** Fix for IBGP export next-hop options ([#459](#459)) ([9489fa2](9489fa2))
* **panos_ike_crypto_profile:** Update DH group choices ([#461](#461)) ([8194318](8194318))
* **panos_ipsec_profile:** Update DH group choices ([#462](#462)) ([1798a3b](1798a3b))
* **panos_software:** Modify valid sequence for downloads only ([#463](#463)) ([214c4bb](214c4bb))
@github-actions
Copy link

🎉 This PR is included in version 2.17.3 🎉

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

Successfully merging this pull request may close these issues.

panos_admpwd output detection
2 participants