mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
missed a .format and messed up the join
This commit is contained in:
parent
bbd2fdc96d
commit
bdf2576dfb
1 changed files with 2 additions and 2 deletions
|
@ -521,8 +521,8 @@ def _interfaces_ifconfig(out):
|
|||
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(':')
|
||||
expand_mac.append('0{0}'.format(chunk) if len(chunk) < 2 else '{0}'.format(chunk))
|
||||
data['hwaddr'] = ':'.join(expand_mac)
|
||||
if mip:
|
||||
if 'inet' not in data:
|
||||
data['inet'] = list()
|
||||
|
|
Loading…
Add table
Reference in a new issue