From 28ede9d50a75cf0ec442835020910ec2485893b3 Mon Sep 17 00:00:00 2001
From: Daniel Beal <50845286+dbeal-wiser@users.noreply.github.com>
Date: Wed, 30 Dec 2020 10:47:04 -0800
Subject: [PATCH] Update docker.ts

---
 src/docker.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/docker.ts b/src/docker.ts
index 079093b..90268f5 100644
--- a/src/docker.ts
+++ b/src/docker.ts
@@ -3,7 +3,7 @@ import * as aws from './aws';
 import * as execm from './exec';
 
 export async function login(registry: string, username: string, password: string, isECR?: boolean): Promise<void> {
-  if (await aws.isECR(registry)) {
+  if (isECR == true || (isECR == undefined && await aws.isECR(registry))) {
     await loginECR(registry, username, password);
   } else {
     await loginStandard(registry, username, password);