correct is DC link

This commit is contained in:
mr 2024-08-20 15:27:12 +02:00
parent b6d9b6910f
commit bfbcd58d1b

View File

@ -25,10 +25,10 @@ type AbstractWorkflow struct {
func (w *AbstractWorkflow) isDCLink(link graph.GraphLink) (bool, string) {
if d, ok := w.Graph.Items[link.Source.ID]; ok && d.Datacenter != nil {
return true, link.Source.ID
return true, d.Datacenter.UUID
}
if d, ok := w.Graph.Items[link.Destination.ID]; ok && d.Datacenter != nil {
return true, link.Destination.ID
return true, d.Datacenter.UUID
}
return false, ""
}