Skip to content

Commit

Permalink
Adding support to differents servers identify leds name
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasgabriel committed Nov 20, 2017
1 parent d6d5117 commit b2c784b
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,16 +372,10 @@ 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_name = %w(Identify Identification)
identification_led = leds&.find { |led| identification_led_name.include?(led["name"]) }
return identification_led["state"] unless identification_led.nil?
""
end

def discover_ip_physical_infra
Expand Down

0 comments on commit b2c784b

Please sign in to comment.