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

Add log_output option for embedded ansible service #16414

Merged
merged 1 commit into from
Nov 8, 2017

Conversation

bzwei
Copy link
Contributor

@bzwei bzwei commented Nov 7, 2017

Similar to #16333, accept log_output option to control whether log ansible stdout in evm.log while executing an embedded ansible service.

@bzwei
Copy link
Contributor Author

bzwei commented Nov 7, 2017

@miq-bot add_label enhancement
@miq-bot add_label gaprindashvili/yes
@miq-bot assign @gmcculloug
@mkanoor @tinaafitz please review

@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)
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@tinaafitz
Copy link
Member

@miq-bot
Copy link
Member

miq-bot commented Nov 8, 2017

Checked commit bzwei@5d20559 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 🍪

Copy link
Member

@gmcculloug gmcculloug left a comment

Choose a reason for hiding this comment

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

@mkanoor Please review

@gmcculloug gmcculloug merged commit 4e662a1 into ManageIQ:master Nov 8, 2017
@gmcculloug gmcculloug added this to the Sprint 73 Ending Nov 13, 2017 milestone Nov 8, 2017
@bzwei bzwei deleted the embedded_stdout branch November 8, 2017 21:31
simaishi pushed a commit that referenced this pull request Nov 14, 2017
Add log_output option for embedded ansible service
(cherry picked from commit 4e662a1)

https://bugzilla.redhat.com/show_bug.cgi?id=1511977
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 48e108b8b0ecd6929fcbc9d32060ef85a5379c5c
Author: Greg McCullough <gmccullo@redhat.com>
Date:   Wed Nov 8 15:27:58 2017 -0500

    Merge pull request #16414 from bzwei/embedded_stdout
    
    Add log_output option for embedded ansible service
    (cherry picked from commit 4e662a1b4daffa25e734640425f1c28998326853)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1511977

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants