Issue #4228 has been updated by Adrien Thebo.

Category set to library
Status changed from In Topic Branch Pending Merge to Merged - Pending Release


----------------------------------------
Bug #4228: macaddress facts should use leading zeros
https://projects.puppetlabs.com/issues/4228

Author: Alan Barrett
Status: Merged - Pending Release
Priority: Normal
Assignee: Michael Kincaid
Category: library
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.

Reply via email to