Skip to content

Commit

Permalink
Add PxeServer.verify_depot_settings_queue
Browse files Browse the repository at this point in the history
  • Loading branch information
lfu committed Feb 4, 2021
1 parent f38aa50 commit f2fdb84
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/models/pxe_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,21 @@ def ensure_menu_list(menu_list)
def self.display_name(number = 1)
n_('PXE Server', 'PXE Servers', number)
end

def self.verify_depot_settings_queue(userid, options)
task_opts = {
:action => "Verify PXE Server Credentials",
:userid => userid
}

queue_opts = {
:class_name => name,
:method_name => "verify_depot_settings",
:queue_name => "generic",
:role => "ems_operations",
:args => [options],
}

MiqTask.generic_action_with_callback(task_opts, queue_opts)
end
end

0 comments on commit f2fdb84

Please sign in to comment.