Explorar el Código

use correct match for arn

Alexander Belanger hace 4 años
padre
commit
714ce6ab93
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      cli/cmd/docker/auth.go

+ 1 - 1
cli/cmd/docker/auth.go

@@ -155,7 +155,7 @@ func (a *AuthGetter) GetECRCredentials(serverURL string, projID uint) (user stri
 		// get a token from the server
 		tokenResp, err := a.Client.GetECRAuthorizationToken(context.Background(), projID, &types.GetRegistryECRTokenRequest{
 			Region:    matches[3],
-			AccountID: matches[0],
+			AccountID: matches[1],
 		})
 
 		if err != nil {