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 24, 2021
1 parent 8bad745 commit edcc516
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 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,22 @@ def verify_depot_settings(settings)
res
end

def verify_depot_settings_queue(userid, zone, options)
task_opts = {
:action => "Verify #{display_name} Credentials",
:userid => userid
}

queue_opts = {
:class_name => name,
:method_name => "verify_depot_settings",
:args => [options],
:zone => zone
}

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 edcc516

Please sign in to comment.