Issue #4228 has been updated by Michael Kincaid. Status changed from Accepted to In Topic Branch Pending Merge
Added Facter::Util::Macaddress.standardize based on Alan's code above. https://github.com/mkincaid/facter/tree/ticket/4228 ---------------------------------------- Bug #4228: macaddress facts should use leading zeros https://projects.puppetlabs.com/issues/4228 Author: Alan Barrett Status: In Topic Branch Pending Merge Priority: Normal Assignee: Michael Kincaid Category: Target version: 1.6.x Keywords: Branch: Affected Facter version: facter macaddress omits leading zeros, giving results like "0:ab:cd:e:12:3" where I would prefer the more conventional "00:ab:cd:0e:12:03". workaround: <pre> $good_macaddress = inline_template('<%= macaddress.split(":").map{|x| "0#{x}"[-2..-1]}.join(":") %>') </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
