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

Show warning when no host has been matched while install #3260

Open
shyim opened this issue Dec 28, 2023 · 0 comments
Open

Show warning when no host has been matched while install #3260

shyim opened this issue Dec 28, 2023 · 0 comments
Labels
Feature New features and improvements.

Comments

@shyim
Copy link

shyim commented Dec 28, 2023

Use Case

When a bolt plan run is executed and no hosts are found or not matching, bolt should show a warning instead of just:

❯ bolt plan run apache::install -t all
Starting: plan apache::install
Finished: plan apache::install in 0.01 sec
Plan completed successfully with no result

Which looks pretty for a successful execution. But nothing happen as my inventory.yaml was empty.

Describe the Solution You Would Like

When a plan is executed and no host has been matched, show a warning to the user.

Additional Context

Just started new with Bolt, I like verbose warnings/errors what I am doing wrong without looking into a lot of docs.

@shyim shyim added the Feature New features and improvements. label Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New features and improvements.
Projects
None yet
Development

No branches or pull requests

1 participant