This commit is contained in:
Ryan McKinley
2025-08-27 10:07:45 +03:00
parent 1fe4415682
commit 87a9f26997
+1 -1
View File
@@ -31,7 +31,7 @@ type converter struct {
}
func (r *converter) asDataSource(ds *datasources.DataSource) (*datasourceV0.DataSource, error) {
if !(ds.Type == r.plugin || slices.Contains(r.alias, ds.Type)) {
if ds.Type != r.plugin && !slices.Contains(r.alias, ds.Type) {
return nil, fmt.Errorf("expected datasource type: %s %v // not: %s", r.plugin, r.alias, ds.Type)
}