diff options
Diffstat (limited to 'lib/ohai/plugins/gce.rb')
-rw-r--r-- | lib/ohai/plugins/gce.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/gce.rb b/lib/ohai/plugins/gce.rb index fdfce390..877e6a4a 100644 --- a/lib/ohai/plugins/gce.rb +++ b/lib/ohai/plugins/gce.rb @@ -28,7 +28,7 @@ Ohai.plugin(:GCE) do # this works even if the system lacks dmidecode use by the Dmi plugin # @return [Boolean] do we have Google Compute Engine DMI data? def has_gce_dmi? - if /Google Compute Engine/.match?(file_val_if_exists("/sys/class/dmi/id/product_name")) + if file_val_if_exists("/sys/class/dmi/id/product_name").to_s.include?("Google Compute Engine") logger.trace("Plugin GCE: has_gce_dmi? == true") true else |