From 5e6e51b9c1949748bde961def29269888d82be2a Mon Sep 17 00:00:00 2001 From: Edward Moscardini Date: Tue, 30 Jul 2024 16:46:54 -0400 Subject: [PATCH] updated version endpoint --- CHANGELOG.md | 6 ++++++ router_upgrade.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e4dbeb..a21e21d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.2.1] - 2024-07-30 + +### Fixed + +- Fixed version endpoint to be more specific + ## [1.2.0] - 2023-10-04 ### Changed diff --git a/router_upgrade.py b/router_upgrade.py index 99f017f..7baf26e 100644 --- a/router_upgrade.py +++ b/router_upgrade.py @@ -203,7 +203,7 @@ def get_ziti_controller_version(controller_url): response = None http_code = 0 try: - endpoint_url = controller_url + "/edge/v1/version" + endpoint_url = controller_url + "/edge/client/v1/version" logging.debug('Attempting to access %s', endpoint_url) urllib3.disable_warnings() response = requests.get(endpoint_url, verify=False, timeout=30) @@ -346,7 +346,7 @@ def main(): """ Main logic """ - __version__ = '1.2.0' + __version__ = '1.2.1' # Change log # See https://github.com/netfoundry/edge-router-upgrade/blob/main/CHANGELOG.md