Files
endoflife-date-release-data/src/pan-os.py
Marc Wrobel 391d65ad8a Simplify argument parsing (#459)
With the current state of automation scripts, this is not possible anymore to launch script with multiple auto configs.
2025-07-06 22:42:01 +02:00

14 lines
466 B
Python

from common import dates, http
from common.releasedata import ProductData, config_from_argv
"""Fetches pan-os versions from https://github.com/mrjcap/panos-versions/."""
config = config_from_argv()
with ProductData(config.product) as product_data:
versions = http.fetch_json(config.url)
for version in versions:
name = version['version']
date = dates.parse_datetime(version['released-on'])
product_data.declare_version(name, date)