Skip to content

Commit

Permalink
fix: unformatted image override message (#140)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Meier <ben.meier@humanitec.com>
  • Loading branch information
astromechza authored May 16, 2024
1 parent bcc2a92 commit c49e950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/command/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ arguments.
if container.Image == "." {
if v, _ := cmd.Flags().GetString(generateCmdImageFlag); v != "" {
container.Image = v
slog.Info("Set container image for workload '%s' container '%s' to %s from --%s", workloadName, containerName, v, generateCmdImageFlag)
slog.Info(fmt.Sprintf("Set container image for workload '%s' container '%s' to %s from --%s", workloadName, containerName, v, generateCmdImageFlag))
out.Containers[containerName] = container
} else if _, ok := containerBuildContexts[containerName]; !ok {
return fmt.Errorf("failed to convert '%s' because container '%s' has no image and neither --%s nor --%s was provided", workloadName, containerName, generateCmdImageFlag, generateCmdBuildFlag)
Expand Down

0 comments on commit c49e950

Please sign in to comment.