You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ResolvePersistedProviderIdentity finds the persisted user-config row that
238
236
// owns identity and reports how it was addressed.
239
237
//
@@ -292,11 +290,14 @@ func ResolvePersistedProviderIdentity(path, identity string) (ProviderProfile, P
292
290
return*foldedName, PersistedIdentityName, nil
293
291
}
294
292
iffoldedMatches>1 {
295
-
returnProviderProfile{}, PersistedIdentityNone, fmt.Errorf("%w: ambiguous provider name %q matches multiple persisted rows that differ only by case; use the exact spelling from config.json", errAmbiguousPersistedProviderIdentity, identity)
293
+
returnProviderProfile{}, PersistedIdentityAmbiguous, fmt.Errorf("ambiguous provider name %q matches multiple persisted rows that differ only by case; use the exact spelling from config.json", identity)
296
294
}
297
295
ifcatalogMatches==1 {
298
296
return*catalogRow, PersistedIdentityCatalog, nil
299
297
}
298
+
ifcatalogMatches>1 {
299
+
returnProviderProfile{}, PersistedIdentityAmbiguous, fmt.Errorf("provider identity %q is ambiguous: %d saved profiles use it as a catalog id", identity, catalogMatches)
0 commit comments