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

Allow --check and be less strict about --diff #6128

Merged
merged 1 commit into from
Sep 19, 2023
Merged

Conversation

millerdev
Copy link
Contributor

@millerdev millerdev commented Sep 18, 2023

It's confusing to get a "that option is managed automatically" error when attempting to run with --check. The operator is forced to guess how to accomplish a --check run when lacking a thorough understanding of how the automatic option management works. It seems appropriate to perform a single --check run if that was requested by the operator.

The situation is similar for --diff, although a duplicate option does not cause harm and does not change the run mode.

Environments Affected

None.

It's confusing to get a "that option is managed automatically" error when attempting to run with --check. The operator is forced to guess what will happen when lacking a thorough understanding of how the automatic option management works. It seems appropriate to perform a single --check run if that was requested by the operator.

The situation is similar for --diff, although a duplicate option does not cause harm and does not change the run mode.
Copy link
Contributor

@gherceg gherceg left a comment

Choose a reason for hiding this comment

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

I can't decide if there is some refactoring that could be done here with run_action_with_check_mode, but it seems out of scope of this PR anyway. Looks good!

@millerdev millerdev merged commit 4f5762a into master Sep 19, 2023
3 checks passed
@millerdev millerdev deleted the dm/allow-check branch September 19, 2023 10:44
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