From eb952de5259dd8c021f058a34fdd861513535bb6 Mon Sep 17 00:00:00 2001 From: AllyWang Date: Thu, 16 Mar 2023 11:24:19 +0800 Subject: [PATCH 1/2] fix public ip address ref --- src/ssh/azext_ssh/ip_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssh/azext_ssh/ip_utils.py b/src/ssh/azext_ssh/ip_utils.py index eb08bf5cf19..320224eb5f3 100644 --- a/src/ssh/azext_ssh/ip_utils.py +++ b/src/ssh/azext_ssh/ip_utils.py @@ -32,7 +32,7 @@ def get_ssh_ip(cmd, resource_group, vm_name, use_private_ip): for ip_config in nic["ipConfigurations"]: if use_private_ip and ip_config.get("privateIPAddress", None): return ip_config["privateIPAddress"] - public_ip_ref = ip_config["privateIPAddress"] + public_ip_ref = ip_config["publicIPAddress"] if public_ip_ref and public_ip_ref.get("id", None): parsed_ip_id = tools.parse_resource_id(public_ip_ref["id"]) api_args = { From cc4c664410075990571402da1824723f395a26e3 Mon Sep 17 00:00:00 2001 From: AllyWang Date: Thu, 16 Mar 2023 11:44:13 +0800 Subject: [PATCH 2/2] add release note --- src/ssh/HISTORY.md | 4 ++++ src/ssh/setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ssh/HISTORY.md b/src/ssh/HISTORY.md index 4cb70d39d5c..af36273784c 100644 --- a/src/ssh/HISTORY.md +++ b/src/ssh/HISTORY.md @@ -1,5 +1,9 @@ Release History =============== +1.1.5 +----- +* Fix issue of getting vm network interface `publicIPAddress` ref + 1.1.4 ----- * Remove dependency to NETWORK SDK diff --git a/src/ssh/setup.py b/src/ssh/setup.py index d986ab7456e..bcad3733fe5 100644 --- a/src/ssh/setup.py +++ b/src/ssh/setup.py @@ -7,7 +7,7 @@ from setuptools import setup, find_packages -VERSION = "1.1.4" +VERSION = "1.1.5" CLASSIFIERS = [ 'Development Status :: 4 - Beta',