diff --git a/uaclient/clouds/gcp.py b/uaclient/clouds/gcp.py index ffd6fe0a6f..3cf91ce8a8 100644 --- a/uaclient/clouds/gcp.py +++ b/uaclient/clouds/gcp.py @@ -24,12 +24,12 @@ DMI_PRODUCT_NAME = "/sys/class/dmi/id/product_name" GCP_PRODUCT_NAME = "Google Compute Engine" -GCP_LICENSES = { - "xenial": "8045211386737108299", - "bionic": "6022427724719891830", - "focal": "599959289349842382", - "jammy": "2592866803419978320", - "noble": "2176054482269786025", +GCP_LICENSES = { # Base [0], Minimal [1] + "xenial": ["8045211386737108299"], + "bionic": ["6022427724719891830", "7427070211152946628"], + "focal": ["599959289349842382", "7818678586103571931"], + "jammy": ["2592866803419978320", "160084055690847662"], + "noble": ["2176054482269786025", "4168323874790319525"], } @@ -111,7 +111,10 @@ def is_pro_license_present(self, *, wait_for_change: bool) -> bool: license_ids = [license["id"] for license in response.json_list] self.etag = response.headers.get("etag") series = system.get_release_info().series - return GCP_LICENSES.get(series) in license_ids + for lic in GCP_LICENSES.get(series, []): + if lic in license_ids: + return True + return False LOG.error(response.body) if response.code == 400: