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

Store the event initiator in MiqEvent object. #16179

Merged
merged 1 commit into from Oct 27, 2017

Conversation

lfu
Copy link
Member

@lfu lfu commented Oct 11, 2017

To keep the info about the event initiator in the MiqEvent object.

Depends on ManageIQ/manageiq-automation_engine#86.
Depends on ManageIQ/manageiq-schema#94.

https://bugzilla.redhat.com/show_bug.cgi?id=1487749

@miq-bot assign @gmcculloug
@miq-bot add_label enhancement

@lfu
Copy link
Member Author

lfu commented Oct 16, 2017

Test failure is due to the dependency on ManageIQ/manageiq-automation_engine#86.

@@ -11,16 +11,20 @@ def process_tasks(options)
task_audit_event(:success, options, :message => msg)
else
assert_known_task(options)
options[:userid] ||= "system"
options[:userid] = User.current_user.try(:userid) || "system"
Copy link
Contributor

Choose a reason for hiding this comment

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

@lfu
Won't this override the options[:userid] if it exists? Backward compatibility

@miq-bot
Copy link
Member

miq-bot commented Oct 27, 2017

Checked commit lfu@940e569 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
6 files checked, 0 offenses detected
Everything looks fine. 🍪

@gmcculloug gmcculloug merged commit e1119cf into ManageIQ:master Oct 27, 2017
@gmcculloug gmcculloug added this to the Sprint 72 Ending Oct 30, 2017 milestone Oct 27, 2017
lfu added a commit to lfu/manageiq-providers-amazon that referenced this pull request Oct 27, 2017
@lfu lfu deleted the miq_event_user_1487749 branch September 29, 2018 14:30
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.

None yet

4 participants