From 4d91f53d6b32f2e9d6f34c992ae9b099b7ae45d5 Mon Sep 17 00:00:00 2001 From: Denis Fuenzalida Date: Fri, 17 Jan 2025 18:24:08 -0800 Subject: [PATCH 1/2] Remove the JBoss'_byol' entries from the output --- src/azure-cli/azure/cli/command_modules/appservice/custom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/appservice/custom.py b/src/azure-cli/azure/cli/command_modules/appservice/custom.py index ae35288abc3..453f2d30108 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/custom.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/custom.py @@ -4133,6 +4133,8 @@ def _parse_major_version_linux(self, major_version, parsed_results): (linux_container_settings.additional_properties.get("java17Runtime"), "17", linux_container_settings.is_auto_update), # pylint: disable=line-too-long (linux_container_settings.java11_runtime, "11", linux_container_settings.is_auto_update), (linux_container_settings.java8_runtime, "8", linux_container_settings.is_auto_update)] + # Remove the JBoss'_byol' entries from the output + runtimes = [(r, v, au) for (r, v, au) in runtimes if r is not None and not(r.endswith("_byol"))] # pylint: disable=line-too-long for runtime_name, version, auto_update in [(r, v, au) for (r, v, au) in runtimes if r is not None]: runtime = self.Runtime(display_name=runtime_name, configs={"linux_fx_version": runtime_name}, From a9ff6ddaa6add518066808c49c8d537c81768afa Mon Sep 17 00:00:00 2001 From: Denis Fuenzalida Date: Tue, 21 Jan 2025 10:43:18 -0800 Subject: [PATCH 2/2] Remove extra parens --- src/azure-cli/azure/cli/command_modules/appservice/custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/appservice/custom.py b/src/azure-cli/azure/cli/command_modules/appservice/custom.py index 453f2d30108..61be1611cd1 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/custom.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/custom.py @@ -4134,7 +4134,7 @@ def _parse_major_version_linux(self, major_version, parsed_results): (linux_container_settings.java11_runtime, "11", linux_container_settings.is_auto_update), (linux_container_settings.java8_runtime, "8", linux_container_settings.is_auto_update)] # Remove the JBoss'_byol' entries from the output - runtimes = [(r, v, au) for (r, v, au) in runtimes if r is not None and not(r.endswith("_byol"))] # pylint: disable=line-too-long + runtimes = [(r, v, au) for (r, v, au) in runtimes if r is not None and not r.endswith("_byol")] # pylint: disable=line-too-long for runtime_name, version, auto_update in [(r, v, au) for (r, v, au) in runtimes if r is not None]: runtime = self.Runtime(display_name=runtime_name, configs={"linux_fx_version": runtime_name},