not proper enum compararison
This commit is contained in:
@@ -42,5 +42,5 @@ func (d *LiveService) GetAccessor(request *tools.APIRequest) utils.Accessor {
|
||||
func (r *LiveService) IsCompatible(service map[string]interface{}) bool {
|
||||
fmt.Println("COMPARE <", service["infrastructure"], "> <", r.Infrastructure, ">")
|
||||
|
||||
return service["infrastructure"] == r.Infrastructure
|
||||
return r.Infrastructure.Compare(service["infrastructure"])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user