diff options
author | vteratipally <67723486+vteratipally@users.noreply.github.com> | 2021-10-22 11:38:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 13:38:08 -0500 |
commit | 6cf9dc870f69f8d910388193a4a59474117915b7 (patch) | |
tree | c6cd7e7ced09d5ed008518b72f92ce8ab859c704 | |
parent | 2107ad01949ec03c740b490bda70038ca55c7fa2 (diff) | |
download | vyos-cloud-init-6cf9dc870f69f8d910388193a4a59474117915b7.tar.gz vyos-cloud-init-6cf9dc870f69f8d910388193a4a59474117915b7.zip |
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
-rw-r--r-- | cloudinit/sources/DataSourceGCE.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |