mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
vpcagent: ignore possible external subnets
This commit is contained in:
@@ -66,9 +66,12 @@ func (ms Vpcs) joinNetworks(subEntries Networks) bool {
|
||||
}
|
||||
m, ok := ms[id]
|
||||
if !ok {
|
||||
// let it go. By the time the subnet has externalId or
|
||||
// managerId set, we will not receive updates from them
|
||||
// anymore
|
||||
log.Warningf("network %s(%s): vpc id %s not found",
|
||||
subEntry.Name, subEntry.Id, id)
|
||||
correct = false
|
||||
delete(subEntries, subId)
|
||||
continue
|
||||
}
|
||||
if _, ok := m.Networks[subId]; ok {
|
||||
|
||||
Reference in New Issue
Block a user