libraries/ec2.rb
def query_mac_address(interface)
        node['network']['interfaces'][interface]['addresses'].select do |_, e|
          e['family'] == 'lladdr'
        end.keys.first.downcase
      end
# fetch the mac address of an interface.
fetch the mac address of an interface.
fetch the mac address of an interface .
def query_mac_address(interface)
        node['network']['interfaces'][interface]['addresses'].select do |_, e|
          e['family'] == 'lladdr'
        end.keys.first.downcase
      end
def query_mac_address ( interface ) node [ 'network' ] [ 'interfaces' ] [ interface ] [ 'addresses' ] . select do | _ , e | e [ 'family' ] == 'lladdr' end . keys . first . downcase end
fetch the mac address of an interface.
fetch the mac address of an interface .
interface