Skip to content

Commit

Permalink
fix msg
Browse files Browse the repository at this point in the history
Signed-off-by: Somtochi Onyekwere <[email protected]>
  • Loading branch information
somtochiama committed Oct 24, 2023
1 parent 4b883e3 commit 2bd5182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/flux/cluster_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func confirmFluxInstallOverride(info fluxClusterInfo) error {
return nil
}

display := fmt.Sprintf("Flux %[1]s has been installed on this cluster with %s", info.version, info.managedBy)
display := fmt.Sprintf("Flux %s has been installed on this cluster with %s", info.version, info.managedBy)
fmt.Fprintln(rootCmd.ErrOrStderr(), display)
prompt := promptui.Prompt{
Label: fmt.Sprintf("Are you sure you want to override the %s installation? Y/N", info.managedBy),
Expand Down
2 changes: 1 addition & 1 deletion cmd/flux/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func installCmdRun(cmd *cobra.Command, args []string) error {
err := confirmFluxInstallOverride(info)
if err != nil {
if err == promptui.ErrAbort {
return fmt.Errorf("install cancelled")
return fmt.Errorf("installation cancelled")
}
return err
}
Expand Down

0 comments on commit 2bd5182

Please sign in to comment.