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

Fixed massage emsrefresh completed successfully #228

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def refresh
else
signal(:abort, "error, no valid option")
end
task_ids = EmsRefresh.queue_refresh_task(targets)
task_ids = queue_refresh_task(targets)
if task_ids.blank?
process_error("Failed to queue refresh", "error")
queue_signal(:error)
Expand All @@ -80,8 +80,20 @@ def refresh

queue_signal(:poll_refresh)
end

end

def queue_refresh_task(target, id = nil)
task_options = {
:action => "EmsRefresh completed successfully ",
:userid => "system"
}

EmsRefresh.queue_refresh_task(target, id, task_options)
end



Comment on lines +94 to +96
Copy link
Member

Choose a reason for hiding this comment

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

Minor style, but can you trim these multiple blank lines to a single blank line?

def load_transitions
self.state ||= 'initialize'

Expand Down