Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMagee committed Dec 1, 2023
1 parent 58a15b4 commit c09ead7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions internal/infra/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,18 @@ func pullImage(ctx context.Context, cli *client.Client, image string) error {
privilegeFunc = func() (string, error) {
return authStr, nil
}
} else {
log.Println("Failed to find credentials for Azure container registry.")
}
} else {
log.Println("Failed to find credentials for Azure container registry.")
}
} else {
log.Printf("Failed to find credentials for pulling image: %s\n.", image)
}

encodedAuth, _ := privilegeFunc()
encodedAuth, err := privilegeFunc()
if err != nil {
return fmt.Errorf("failed to get credentials for %v: %w", image, err)
}

log.Printf("pulling image: %s\n", image)
out, err := cli.ImagePull(ctx, image, types.ImagePullOptions{
RegistryAuth: encodedAuth,
Expand Down

0 comments on commit c09ead7

Please sign in to comment.