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 2ac0f36
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/models/mixins/file_depot_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ def verify_depot_settings(settings)
res
end

def verify_depot_settings_queue(userid, options)
task_opts = {
:action => "Verify #{display_name} 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

def mnt_instance(settings)
settings[:uri_prefix] ||= get_uri_prefix(settings[:uri])
klass = "Miq#{settings[:uri_prefix].capitalize}Session".constantize
Expand Down

0 comments on commit 2ac0f36

Please sign in to comment.