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

Skip upgrade if target version same #51

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

alperenkose
Copy link
Collaborator

Description

Skip re-installing software if target version matches with installed version on firewall.

Motivation and Context

This allows upgrading a partially upgraded HA pair if upgrade playbook failed after upgrading a peer.
The firewall with lower panos version should be targeted when creating a new device upgrade incident to upgrade a partially upgraded HA pair.
Also fixes #50

How Has This Been Tested?

Tested on vmseries with xsoar 8.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

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.

Skip re-installing software if target version matches with installed
version on firewall.
This also allows upgrading a partially upgraded HA pair if upgrade
playbook failed after upgrading a peer.
Also fixes a bug in FilterAvailableSoftwareImages script where
it fails to return newer hotfix versions because of float comparison.
Copy link
Collaborator

@adambaumeister adambaumeister left a comment

Choose a reason for hiding this comment

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

Looks good, an edge case I never thought of that's for sure 😅

@alperenkose alperenkose merged commit 3585261 into main Oct 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FilterAvailableSoftwareImages doesnot return newer hotfix versions
2 participants