diff options
Diffstat (limited to 'lib/ohai/plugins/azure.rb')
-rw-r--r-- | lib/ohai/plugins/azure.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/azure.rb b/lib/ohai/plugins/azure.rb index 008a9a21..e3c003c7 100644 --- a/lib/ohai/plugins/azure.rb +++ b/lib/ohai/plugins/azure.rb @@ -58,7 +58,7 @@ Ohai.plugin(:Azure) do has_245 = false if file_exist?("/var/lib/dhcp/dhclient.eth0.leases") file_open("/var/lib/dhcp/dhclient.eth0.leases").each do |line| - if /unknown-245/.match?(line) + if line.include?("unknown-245") logger.trace("Plugin Azure: Found unknown-245 DHCP option used by Azure.") has_245 = true break |