correct is DC link
This commit is contained in:
parent
b6d9b6910f
commit
bfbcd58d1b
@ -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, ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user