summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/azure.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/azure.rb')
-rw-r--r--lib/ohai/plugins/azure.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/azure.rb b/lib/ohai/plugins/azure.rb
index 5969afb6..76161194 100644
--- a/lib/ohai/plugins/azure.rb
+++ b/lib/ohai/plugins/azure.rb
@@ -57,7 +57,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 line =~ /unknown-245/
+ if /unknown-245/.match?(line)
logger.trace("Plugin Azure: Found unknown-245 DHCP option used by Azure.")
has_245 = true
break