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 5, 2021
1 parent f38aa50 commit b60096d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 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,21 @@ 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",
: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 b60096d

Please sign in to comment.