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