Skip to content

Commit

Permalink
fix(cli): fix header in resource-overrides list-actions output (argop…
Browse files Browse the repository at this point in the history
…roj#15375)

Signed-off-by: Maxime Brunet <[email protected]>
  • Loading branch information
maxbrunet authored and tesla59 committed Dec 16, 2023
1 parent 2f00e0b commit c7b1cc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/argocd/commands/admin/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ argocd admin settings resource-overrides action list /tmp/deploy.yaml --argocd-c
})

w := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0)
_, _ = fmt.Fprintf(w, "NAME\tENABLED\n")
_, _ = fmt.Fprintf(w, "NAME\tDISABLED\n")
for _, action := range availableActions {
_, _ = fmt.Fprintf(w, "%s\t%s\n", action.Name, strconv.FormatBool(action.Disabled))
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/argocd/commands/admin/settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ func TestResourceOverrideAction(t *testing.T) {
assert.NoError(t, err)
})
assert.NoError(t, err)
assert.Contains(t, out, `NAME ENABLED
assert.Contains(t, out, `NAME DISABLED
restart false
resume false
`)
Expand Down Expand Up @@ -440,7 +440,7 @@ resume false

assert.NoError(t, err)
assert.Contains(t, out, "NAME")
assert.Contains(t, out, "ENABLED")
assert.Contains(t, out, "DISABLED")
assert.Contains(t, out, "create-a-job")
assert.Contains(t, out, "false")
})
Expand Down

0 comments on commit c7b1cc2

Please sign in to comment.