From 248c5896ceb1396df4bb5443f550ee35fc186d57 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Sat, 17 Dec 2022 17:11:58 -0700 Subject: [PATCH] Correct confirmation output in profile set Closes #600 Signed-off-by: Jonathon Anderson --- internal/app/wwctl/profile/set/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/app/wwctl/profile/set/main.go b/internal/app/wwctl/profile/set/main.go index f905f2a9..efa20fd2 100644 --- a/internal/app/wwctl/profile/set/main.go +++ b/internal/app/wwctl/profile/set/main.go @@ -34,14 +34,14 @@ func CobraRunE(cmd *cobra.Command, args []string) (err error) { } if !SetYes { - var nodeCount uint + var profileCount uint // The checks run twice in the prompt case. // Avoiding putting in a blocking prompt in an API. - _, nodeCount, err = apiprofile.ProfileSetParameterCheck(&set, false) + _, profileCount, err = apiprofile.ProfileSetParameterCheck(&set, false) if err != nil { return } - yes := util.ConfirmationPrompt(fmt.Sprintf("Are you sure you want to modify %d nodes(s)", nodeCount)) + yes := util.ConfirmationPrompt(fmt.Sprintf("Are you sure you want to modify %d profile(s)", profileCount)) if !yes { return }