From 6cf9dc870f69f8d910388193a4a59474117915b7 Mon Sep 17 00:00:00 2001 From: vteratipally <67723486+vteratipally@users.noreply.github.com> Date: Fri, 22 Oct 2021 11:38:08 -0700 Subject: Add "Google" as possible system-product-name (#1077) In some of the cases, the system-product-name is just google. This is useful incase of nocloud where we use the disk to load the datasource --- cloudinit/sources/DataSourceGCE.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudinit/sources/DataSourceGCE.py b/cloudinit/sources/DataSourceGCE.py index ecdc458b..9f838bd4 100644 --- a/cloudinit/sources/DataSourceGCE.py +++ b/cloudinit/sources/DataSourceGCE.py @@ -257,7 +257,7 @@ def read_md(address=None, url_params=None, platform_check=True): def platform_reports_gce(): pname = dmi.read_dmi_data('system-product-name') or "N/A" - if pname == "Google Compute Engine": + if pname == "Google Compute Engine" or pname == "Google": return True # system-product-name is not always guaranteed (LP: #1674861) -- cgit v1.2.3