fix issue trimming repo string

This commit is contained in:
Colin Hoglund 2018-02-10 00:58:41 -05:00
parent af4a2586ce
commit 69c4be48ec

View File

@ -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))
}
}