Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing max_wait argument in ::Service::Commands::Stop.run call #800

Closed
wants to merge 1 commit into from

Conversation

albertterradas
Copy link

Summary

This PR fixes an issue in the ::Service::Commands::Stop.run method call, where max_wait was referenced without being assigned a value.

Changes

  • Updated the max_wait: argument to max_wait: max_wait to correctly pass the intended max_wait variable.

Context

The lack of a value assignment to max_wait resulted in an error when invoking the stop command. This change ensures that max_wait is now passed correctly as an argument.

### Summary
This PR fixes an issue in the `::Service::Commands::Stop.run` method call, where `max_wait` was referenced without being assigned a value.

### Changes
- Updated the `max_wait:` argument to `max_wait: max_wait` to correctly pass the intended `max_wait` variable.

### Context
The lack of a value assignment to `max_wait` resulted in an error when invoking the stop command. This change ensures that `max_wait` is now passed correctly as an argument.
Comment on lines 152 to +153
max_wait = args.max_wait.to_f
::Service::Commands::Stop.run(targets, verbose: args.verbose?, no_wait: args.no_wait?, max_wait:)
::Service::Commands::Stop.run(targets, verbose: args.verbose?, no_wait: args.no_wait?, max_wait: max_wait)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@albertterradas What Ruby version are you running? The existing syntax is valid on the version of Ruby that Homebrew requires.

@p-linnane
Copy link
Member

Closing due to lack of response.

@p-linnane p-linnane closed this Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants