From cb04122e240956184a3b344217746ebe07d36774 Mon Sep 17 00:00:00 2001 From: varsha teratipally Date: Thu, 21 Oct 2021 22:49:08 +0000 Subject: [PATCH] add Google to the pname. Some of the cases the system-product-name is Google --- 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 ecdc458b337..9f838bd45d0 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)