summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-01-12 17:55:33 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2021-01-12 17:55:33 -0800
commit20a45cbeae7655234e76ace16f9f3c32db111b14 (patch)
treecf15397762ad0b41ba82fb9b07c306dcacbdf0a7
parent0e8bb8b5afea34b57cdbbb3ad5f9fc33140c64f3 (diff)
downloadohai-20a45cbeae7655234e76ace16f9f3c32db111b14.tar.gz
suppress constant redefinition warning
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-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)