Skip to content

Commit

Permalink
Merge pull request #118 from cdot65/117-support-beta-releases-of-pan-…
Browse files Browse the repository at this point in the history
…os-builds-with-a-b-in-their-names

117 support beta releases of pan os builds with a b in their names
  • Loading branch information
cdot65 authored Mar 19, 2024
2 parents 77af370 + 5ec0062 commit a032156
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ WORKDIR /app
COPY settings.yaml /app

# Install any needed packages specified in requirements.txt
# Note: The requirements.txt should contain pan-os-upgrade==1.3.8
RUN pip install --no-cache-dir pan-os-upgrade==1.3.8
# Note: The requirements.txt should contain pan-os-upgrade==1.3.9
RUN pip install --no-cache-dir pan-os-upgrade==1.3.9

# Set the locale to avoid issues with emoji rendering
ENV LANG C.UTF-8
Expand Down
8 changes: 8 additions & 0 deletions docs/about/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

Welcome to the release notes for the `pan-os-upgrade` tool. This document provides a detailed record of changes, enhancements, and fixes in each version of the tool.

## Version 1.3.9

**Release Date:** *<20240319>*

### What's New in version 1.3.9

- Added support for beta releases with `-b` in their PAN-OS version names

## Version 1.3.8

**Release Date:** *<20240318>*
Expand Down
2 changes: 2 additions & 0 deletions pan_os_upgrade/components/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,8 @@ def parse_version(version: str) -> Tuple[int, int, int, int]:
maintenance_str, hotfix_str = maintenance_part.split("-h")
elif "-c" in maintenance_part:
maintenance_str, hotfix_str = maintenance_part.split("-c")
elif "-b" in maintenance_part:
maintenance_str, hotfix_str = maintenance_part.split("-b")
else:
maintenance_str = maintenance_part
hotfix_str = "0"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pan-os-upgrade"
version = "1.3.8"
version = "1.3.9"
description = "Python script to automate the upgrade process of PAN-OS firewalls."
authors = ["Calvin Remsburg <[email protected]>"]
documentation = "https://cdot65.github.io/pan-os-upgrade/"
Expand Down
1 change: 1 addition & 0 deletions tests/test_parse_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
("1.0.0", (1, 0, 0, 0)),
("2.5.3", (2, 5, 3, 0)),
("4.2.0-h1", (4, 2, 0, 1)),
("11.1.2-b1", (11, 1, 2, 1)),
("3.10.4-h2", (3, 10, 4, 2)),
("0.9.0-h0", (0, 9, 0, 0)),
("6.3.5-c1", (6, 3, 5, 1)),
Expand Down

0 comments on commit a032156

Please sign in to comment.