Skip to content

Commit

Permalink
Fix discover from queue parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielsvinha committed Jul 27, 2017
1 parent a918163 commit 9643024
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/manageiq/providers/lenovo/manager_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ def discover(ip_address, port)
EmsRefresh.queue_refresh(new_ems) unless new_ems.blank?
end

def discover_queue(username, password, zone = nil)
def discover_queue(ip_address, port, zone = nil)
MiqQueue.put(
:class_name => name,
:method_name => "discover_from_queue",
:args => [username, MiqPassword.encrypt(password)],
:args => [ip_address, port],
:zone => zone
)
end

private

def discover_from_queue(username, password)
discover(username, '')
def discover_from_queue(ip_address, port)
discover(ip_address, port)
end

def create_default_authentications(ems)
Expand Down

0 comments on commit 9643024

Please sign in to comment.