Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
fix: use v2/ instead of catalog for testing registries
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Chaia committed Oct 31, 2018
1 parent e3c24d7 commit 5b9c80b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions src/app/registry/registry-auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ export class RegistryAuthService {
Authorization: `Basic ${basic}`
};
}
const params: any = {
service: service,
clientId: clientId,
};
if (scope) {
params.scope = scope;
}

return this.httpClient.get<{ token: string }>(url,
{
params: {
service: service,
scope: scope,
clientId: clientId,
},
params: params,
headers: headers
}).pipe(map(r => {
return r.token;
Expand Down
2 changes: 1 addition & 1 deletion src/app/registry/registry.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class RegistryService {
}

public testRegistrySettings(settings: DockerRegistrySettings) {
return this.get<void>(settings, `v2/_catalog`, { n: '1' });
return this.get<void>(settings, `v2/`);
}

protected get<T>(registrySettings: DockerRegistrySettings,
Expand Down

0 comments on commit 5b9c80b

Please sign in to comment.