diff options
Diffstat (limited to 'lib/ohai/plugins/azure.rb')
-rw-r--r-- | lib/ohai/plugins/azure.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/ohai/plugins/azure.rb b/lib/ohai/plugins/azure.rb index 7e4905d0..c460fb33 100644 --- a/lib/ohai/plugins/azure.rb +++ b/lib/ohai/plugins/azure.rb @@ -58,12 +58,11 @@ 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.include?("unknown-245") - # if /unknown-245/.match?(line) - logger.trace("Plugin Azure: Found unknown-245 DHCP option used by Azure.") - has_245 = true - break - end + if line.include?("unknown-245") + # if /unknown-245/.match?(line) + logger.trace("Plugin Azure: Found unknown-245 DHCP option used by Azure.") + has_245 = true + break end end has_245 |