Skip to content

Commit

Permalink
update wait var name to align with flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
jdockerty committed Nov 23, 2022
1 parent 0f1048a commit 1d92a1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions command/deployment_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (c *DeploymentStatusCommand) Name() string { return "deployment status" }

func (c *DeploymentStatusCommand) Run(args []string) int {
var json, verbose, monitor bool
var waitTime time.Duration
var wait time.Duration
var tmpl string

flags := c.Meta.FlagSet(c.Name(), FlagSetClient)
Expand All @@ -100,7 +100,7 @@ func (c *DeploymentStatusCommand) Run(args []string) int {
flags.BoolVar(&json, "json", false, "")
flags.BoolVar(&monitor, "monitor", false, "")
flags.StringVar(&tmpl, "t", "", "")
flags.DurationVar(&waitTime, "wait", 2*time.Second, "")
flags.DurationVar(&wait, "wait", 2*time.Second, "")

if err := flags.Parse(args); err != nil {
return 1
Expand Down Expand Up @@ -178,7 +178,7 @@ func (c *DeploymentStatusCommand) Run(args []string) int {

c.Ui.Output(fmt.Sprintf("%s: Monitoring deployment %q",
formatTime(time.Now()), limit(deploy.ID, length)))
c.monitor(client, deploy.ID, meta.LastIndex, waitTime, verbose)
c.monitor(client, deploy.ID, meta.LastIndex, wait, verbose)

return 0
}
Expand Down

0 comments on commit 1d92a1c

Please sign in to comment.