Skip to content

Commit 7527f27

Browse files
authored
Merge pull request #321 from stgraber/ovn
incusd/network/ovs: Fix empty OVNBridgeMappings
2 parents b266967 + 3e1f886 commit 7527f27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/server/network/ovs/ovs_actions.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ func (o *VSwitch) OVNBridgeMappings(bridgeName string) ([]string, error) {
214214
}
215215

216216
val := vSwitch.ExternalIDs["ovn-bridge-mappings"]
217+
if val == "" {
218+
return []string{}, nil
219+
}
220+
217221
return strings.SplitN(val, ",", -1), nil
218222
}
219223

0 commit comments

Comments
 (0)