fix issue trimming repo string
This commit is contained in:
1 parent
af4a2586ce
commit
69c4be48ec
1 file changed
+2
-2
@@ -55,9 +55,9 @@ func main() {
|
||||
}
|
||||
|
||||
if create {
|
||||
err = ensureRepoExists(svc, strings.TrimPrefix(repo, registry))
|
||||
err = ensureRepoExists(svc, strings.SplitN(repo, "/", 2)[1])
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
log.Fatal(fmt.Sprintf("error creating ECR repo: %v", err))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user