Merge branch '10287-fix-dashes-in-interface-names' of git://github.com/dmyerscough/salt into dmyerscough-10287-fix-dashes-in-interface-names

Conflicts:
	salt/utils/network.py
This commit is contained in:
Thomas S Hatch 2014-02-26 13:10:05 -07:00
commit 3c9d5ae43b

View File

@ -171,7 +171,7 @@ def _interfaces_ip(out):
for line in group.splitlines():
if not ' ' in line:
continue
match = re.match(r'^\d*:\s+([\w.-]+)(?:@)?([\w.-]+)?:\s+<(.+)>', line)
match = re.match(r'^\d*:\s+([\w.\-]+)(?:@)?([\w.\-]+)?:\s+<(.+)>', line)
if match:
iface, parent, attrs = match.groups()
if 'UP' in attrs.split(','):