Skip to content

Commit

Permalink
Fix v2 registry version call (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenWeatherford authored Sep 11, 2018
1 parent e03722d commit d145989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explorer/models/customRegistryNodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export class CustomRegistryNode extends NodeBase {

// Returns undefined if it's valid, otherwise returns an error message
public static async verifyIsValidRegistryUrl(registry: CustomRegistry): Promise<void> {
// If the call succeeded, it's a V2 registry
await registryRequest<{}>(registry.url, 'v2', registry.credentials);
// If the call succeeds, it's a V2 registry (https://docs.docker.com/registry/spec/api/#api-version-check)
await registryRequest<{}>(registry.url, 'v2/', registry.credentials);
}

public async getChildren(element: CustomRegistryNode): Promise<CustomRepositoryNode[]> {
Expand Down

0 comments on commit d145989

Please sign in to comment.