Skip to content

Commit

Permalink
installer: set -y flag on machine destroy calls
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarsa committed Oct 18, 2018
1 parent 4252314 commit 95777ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsuru/installer/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (c *Uninstall) Run(ctx *cmd.Context, cli *cmd.Client) error {
return nil
}
destroyMachineCmd := admin.MachineDestroy{}
destroyMachineCmd.Flags().Parse(true, []string{"-y"})
destroyCtx := &cmd.Context{Stdout: ctx.Stdout, Stderr: ctx.Stderr}
for _, m := range appMachines {
destroyCtx.Args = []string{m.Id}
Expand Down

0 comments on commit 95777ec

Please sign in to comment.