Skip to content

Commit 862fb5f

Browse files
author
Rene Diepstraten
committed
Add head -1 to get_bridge_physdev
1 parent cc27095 commit 862fb5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/vm/network/security_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def split_ips_by_family(ips):
149149

150150

151151
def get_bridge_physdev(brname):
152-
physdev = execute("bridge -o link show | awk '/master %s / && !/^[0-9]+: vnet/ {print $2}'" % brname)
152+
physdev = execute("bridge -o link show | awk '/master %s / && !/^[0-9]+: vnet/ {print $2}' | head -1" % brname)
153153
return physdev.strip()
154154

155155

0 commit comments

Comments
 (0)