Commit a67dd1de authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

amqp: fix broken validation of AMQP status updates

parent 807be66c
Pipeline #421333 passed with stages
in 37 minutes and 15 seconds
......@@ -59,6 +59,7 @@ type ICStatus struct {
}
type ICProperties struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Description string `json:"description"`
Location string `json:"location"`
......@@ -338,6 +339,8 @@ func (s *InfrastructureComponent) updateExternalIC(payload ICUpdate, body []byte
} else {
updatedICReq.InfrastructureComponent.State = "unknown"
}
updatedICReq.InfrastructureComponent.UUID = payload.Properties.UUID
updatedICReq.InfrastructureComponent.Uptime = payload.Status.Uptime
updatedICReq.InfrastructureComponent.Type = payload.Properties.Type
updatedICReq.InfrastructureComponent.Category = payload.Properties.Category
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment