Issue #4228 has been updated by James Turnbull.

Assignee set to Michael Kincaid


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

Author: Alan Barrett
Status: Accepted
Priority: Normal
Assignee: Michael Kincaid
Category: 
Target version: 1.6.0
Affected Puppet version: 0.25.5
Keywords: 
Branch: 


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