Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting differents identify leds name of physical servers on refresh #115

Merged
merged 1 commit into from
Nov 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -372,16 +372,9 @@ def parse_asset_details(node)
end

def find_loc_led_state(leds)
loc_led_state = ""
unless leds.nil?
leds.each do |led|
if led["name"] == "Identify"
loc_led_state = led["state"]
break
end
end
end
loc_led_state
identification_led_names = %w(Identify Identification)
identification_led = leds.to_a.find { |led| identification_led_names.include?(led["name"]) }
identification_led.try(:[], "state")
end

def discover_ip_physical_infra
Expand Down