summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@opscode.com>2021-01-12 17:56:37 -0800
committerGitHub <noreply@github.com>2021-01-12 17:56:37 -0800
commit7ca3d87b135dcf64785d4d0b7ad298404173ab5c (patch)
treecf15397762ad0b41ba82fb9b07c306dcacbdf0a7
parent0e8bb8b5afea34b57cdbbb3ad5f9fc33140c64f3 (diff)
parent20a45cbeae7655234e76ace16f9f3c32db111b14 (diff)
downloadohai-7ca3d87b135dcf64785d4d0b7ad298404173ab5c.tar.gz
Merge pull request #1597 from chef/lcg/suppress-warning
suppress constant redefinition warning
-rw-r--r--lib/ohai/plugins/eucalyptus.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/eucalyptus.rb b/lib/ohai/plugins/eucalyptus.rb
index 25f995ea..2127fc52 100644
--- a/lib/ohai/plugins/eucalyptus.rb
+++ b/lib/ohai/plugins/eucalyptus.rb
@@ -29,7 +29,7 @@ Ohai.plugin(:Eucalyptus) do
provides "eucalyptus"
depends "network/interfaces"
- MAC_MATCH = /^[dD]0:0[dD]:/.freeze
+ MAC_MATCH = /^[dD]0:0[dD]:/.freeze unless defined?(MAC_MATCH)
# returns the mac address from the collection of all address types
def get_mac_address(addresses)