Merge "Fix mac_from_vrouter fact"

This commit is contained in:
Jenkins 2016-10-19 15:31:49 +00:00 committed by Gerrit Code Review
commit e34d229da3
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ Facter.add("mac_from_vrouter") do
end
mac = `cat /sys/class/net/#{phys_dev}/address`.chomp
if $?.success?
unless $?.success?
output.split('vif').each do |iface|
if iface.start_with?( '0/0')
mac = iface.split[8][7..-1]