inspect comparision

This commit is contained in:
mr
2026-05-29 10:22:07 +02:00
parent 7e5b69b1d2
commit ce110ee634
3 changed files with 16 additions and 5 deletions
+3
View File
@@ -1,6 +1,8 @@
package live
import (
"fmt"
"cloud.o-forge.io/core/oc-lib/models/common/enum"
"cloud.o-forge.io/core/oc-lib/models/common/models"
"cloud.o-forge.io/core/oc-lib/models/utils"
@@ -36,6 +38,7 @@ type LiveDatacenter struct {
}
func (r *LiveDatacenter) IsCompatible(service map[string]interface{}) bool {
fmt.Println("COMPARE <", service["infrastructure"], "> <", r.Infrastructure, "> AND <", service["architecture"], "> <", r.Architecture, ">")
return service["infrastructure"] == r.Infrastructure && service["architecture"] == r.Architecture
}