correct workflow problem

This commit is contained in:
mr
2024-08-29 11:03:26 +02:00
parent a53e3c987d
commit 2e8246fb2f
2 changed files with 20 additions and 5 deletions

View File

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