Merge pull request #25274 from jleroy/25268-fix

Fix for issue #25268
This commit is contained in:
Nicole Thomas 2015-07-09 07:36:26 -06:00
commit 972fa2fb54

View file

@ -415,7 +415,8 @@ def _interfaces_ip(out):
brd = cols[cols.index('brd') + 1]
elif type_ == 'inet6':
mask = cidr
scope = cols[cols.index('scope') + 1]
if 'scope' in cols:
scope = cols[cols.index('scope') + 1]
return (ip, mask, brd, scope)
groups = re.compile('\r?\n\\d').split(out)