Skip to content

Commit 1e9b3d4

Browse files
shashvat-kediazeripath
authored andcommitted
Fix #9530: admin auth list make readable and admin auth delete bug fix (#9628)
1 parent b9309e5 commit 1e9b3d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/admin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ var (
155155
microcmdAuthDelete = cli.Command{
156156
Name: "delete",
157157
Usage: "Delete specific auth source",
158+
Flags: []cli.Flag{idFlag},
158159
Action: runDeleteAuth,
159160
}
160161

@@ -533,9 +534,9 @@ func runListAuth(c *cli.Context) error {
533534

534535
// loop through each source and print
535536
w := tabwriter.NewWriter(os.Stdout, 0, 0, 1, ' ', tabwriter.AlignRight)
536-
fmt.Fprintf(w, "ID\tName\tType\tEnabled")
537+
fmt.Fprintf(w, "ID\tName\tType\tEnabled\n")
537538
for _, source := range loginSources {
538-
fmt.Fprintf(w, "%d\t%s\t%s\t%t", source.ID, source.Name, models.LoginNames[source.Type], source.IsActived)
539+
fmt.Fprintf(w, "%d\t%s\t%s\t%t\n", source.ID, source.Name, models.LoginNames[source.Type], source.IsActived)
539540
}
540541
w.Flush()
541542

0 commit comments

Comments
 (0)