Skip to content

Commit

Permalink
Fix bug with repair command and change in owner flag
Browse files Browse the repository at this point in the history
Reported by Riskfuel the owner flag wasn't working properly
in the latest release

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Aug 15, 2023
1 parent e951604 commit 8880650
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cmd/repair.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,18 @@ status.`,
}

func runRepairE(cmd *cobra.Command, args []string) error {
pat, err := getPat(cmd)
if err != nil {
return err

var owner string
if len(args) == 1 {
owner = strings.TrimSpace(args[0])
}

staff, err := cmd.Flags().GetBool("staff")
pat, err := getPat(cmd)
if err != nil {
return err
}

owner, err := cmd.Flags().GetString("owner")
staff, err := cmd.Flags().GetBool("staff")
if err != nil {
return err
}
Expand Down

0 comments on commit 8880650

Please sign in to comment.