diff --git a/src/confcom/HISTORY.rst b/src/confcom/HISTORY.rst index 7e03f6c0b0b..8704b22645a 100644 --- a/src/confcom/HISTORY.rst +++ b/src/confcom/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +1.2.4 +++++++ +* rolling back genpolicy version for Azure Linux V2 support instead of V3 + 1.2.3 ++++++ * adding fragment support for VN2 diff --git a/src/confcom/azext_confcom/data/internal_config.json b/src/confcom/azext_confcom/data/internal_config.json index 274c72cec37..051eda024d0 100644 --- a/src/confcom/azext_confcom/data/internal_config.json +++ b/src/confcom/azext_confcom/data/internal_config.json @@ -1,5 +1,5 @@ { - "version": "1.2.3", + "version": "1.2.4", "hcsshim_config": { "maxVersion": "1.0.0", "minVersion": "0.0.1" diff --git a/src/confcom/azext_confcom/kata_proxy.py b/src/confcom/azext_confcom/kata_proxy.py index daa30846a4f..01487021e68 100644 --- a/src/confcom/azext_confcom/kata_proxy.py +++ b/src/confcom/azext_confcom/kata_proxy.py @@ -40,7 +40,12 @@ def download_binaries(): needed_assets = ["genpolicy", "genpolicy.exe"] # search for genpolicy in the assets from kata-container releases for release in r.json(): - if "genpolicy" in release.get("tag_name"): + is_target = ( + "genpolicy" in release.get("tag_name") and + not release.get("draft") and + not release.get("prerelease") + ) + if is_target: # these should be newest to oldest for asset in release["assets"]: # download the file if it contains genpolicy diff --git a/src/confcom/azext_confcom/tests/latest/test_confcom_scenario.py b/src/confcom/azext_confcom/tests/latest/test_confcom_scenario.py index ca83719070e..e47fc94e7ea 100644 --- a/src/confcom/azext_confcom/tests/latest/test_confcom_scenario.py +++ b/src/confcom/azext_confcom/tests/latest/test_confcom_scenario.py @@ -577,8 +577,8 @@ def test_image_layers_python(self): aci_policy.populate_policy_content_for_all_images() layers = aci_policy.get_images()[0]._layers expected_layers = [ - "f4dbab29a5ddebfa8866d72df10d284ffb2b11292baf8d184b7bc1241d5074fd", - "c003cd912b804162760beb676e5b629a297d75fbdcffd2d3ee49bacc0b985a52" + "81f4183d118e68e8bb3c8845da3b0fe3cc331a63184b534ea0307d4d01c52418", + "3a1edaedd7e7e0072846d74219577c05b25498c233196d38ae0fe6cde8c2c92a" ] self.assertEqual(len(layers), len(expected_layers)) for i in range(len(expected_layers)): diff --git a/src/confcom/setup.py b/src/confcom/setup.py index c3de7dea809..f3a80ffcd2e 100644 --- a/src/confcom/setup.py +++ b/src/confcom/setup.py @@ -19,7 +19,7 @@ logger.warn("Wheel is not available, disabling bdist_wheel hook") -VERSION = "1.2.3" +VERSION = "1.2.4" # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers