From b97947ecbe32cf651703f8febdbee19026f12754 Mon Sep 17 00:00:00 2001 From: Coo101 Date: Thu, 3 Oct 2024 12:29:17 +0200 Subject: [PATCH] Update upgrade.py added logic check for 10.2 or higher devices to upgrade directly --- pan_os_upgrade/components/upgrade.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pan_os_upgrade/components/upgrade.py b/pan_os_upgrade/components/upgrade.py index 8cf0f2e..205dc9e 100644 --- a/pan_os_upgrade/components/upgrade.py +++ b/pan_os_upgrade/components/upgrade.py @@ -115,6 +115,12 @@ def check_ha_compatibility( is_ha_pair = ha_details["result"].get("enabled", False) if is_ha_pair: + # Check if the starting release is higher then 10.2 + if target_major >= 11 and ((current_major == 10 and current_minor == 2) or (current_major >= 11)): + logging.info( + f"{get_emoji(action='success')} {hostname}: The starting release is higher than 10.2. Continuing with direct upgrade" + ) + return True # Check if the major upgrade is more than one release apart if target_major - current_major > 1: logging.warning(