mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
fix for illumos/solaris hwaddr
This commit is contained in:
parent
6ee17f905b
commit
bbd2fdc96d
@ -518,6 +518,11 @@ def _interfaces_ifconfig(out):
|
||||
iface = miface.group(1)
|
||||
if mmac:
|
||||
data['hwaddr'] = mmac.group(1)
|
||||
if salt.utils.is_sunos():
|
||||
expand_mac = []
|
||||
for chunk in data['hwaddr'].split(':'):
|
||||
expand_mac.append('0{0}' if len(chunk) < 2 else '{0}'.format(chunk))
|
||||
data['hwaddr'] = expand_mac.join(':')
|
||||
if mip:
|
||||
if 'inet' not in data:
|
||||
data['inet'] = list()
|
||||
|
Loading…
Reference in New Issue
Block a user