|
@ -252,6 +252,9 @@ func (b *Bridge) MakeCongruent(ctx context.Context) (int, error) { |
|
|
updates := make(map[string]ResourceUpdate) |
|
|
updates := make(map[string]ResourceUpdate) |
|
|
for _, device := range b.devices { |
|
|
for _, device := range b.devices { |
|
|
resource := b.resources[device.InternalID] |
|
|
resource := b.resources[device.InternalID] |
|
|
|
|
|
if resource == nil { |
|
|
|
|
|
continue |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Update device
|
|
|
// Update device
|
|
|
if resource.Metadata.Name != device.Name { |
|
|
if resource.Metadata.Name != device.Name { |
|
|