-
Notifications
You must be signed in to change notification settings - Fork 897
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
Add log_output option for embedded ansible service #16414
Conversation
@miq-bot add_label enhancement @tinaafitz do we have a BZ for this feature? May use the same BZ for UI work. |
@@ -163,4 +164,15 @@ def decrypt_options(opts) | |||
opts[:extra_vars].transform_values! { |val| val.kind_of?(String) ? MiqPassword.try_decrypt(val) : val } | |||
end | |||
end | |||
|
|||
def log_stdout(action) | |||
log_option = options.fetch_path(:config_info, action.downcase.to_sym, :log_output) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bzwei do we need a default value of on_error so it would work with existing entities?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default here is not to log. The true default is expected to be set by the template definition which comes from UI.
@bzwei I created new BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1510637 |
e284816
to
8f5bbcb
Compare
8f5bbcb
to
5d20559
Compare
Checked commit bzwei@5d20559 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkanoor Please review
Add log_output option for embedded ansible service (cherry picked from commit 4e662a1) https://bugzilla.redhat.com/show_bug.cgi?id=1511977
Gaprindashvili backport details:
|
Similar to #16333, accept
log_output
option to control whether log ansible stdout in evm.log while executing an embedded ansible service.