|
|
@ -702,8 +702,7 @@ class RedfishUtils(object):
|
|
|
|
payloads = {'IndicatorLedOn': 'Lit', 'IndicatorLedOff': 'Off', "IndicatorLedBlink": 'Blinking'}
|
|
|
|
payloads = {'IndicatorLedOn': 'Lit', 'IndicatorLedOff': 'Off', "IndicatorLedBlink": 'Blinking'}
|
|
|
|
|
|
|
|
|
|
|
|
result = {}
|
|
|
|
result = {}
|
|
|
|
for chassis_uri in self.chassis_uris:
|
|
|
|
response = self.get_request(self.root_uri + self.chassis_uri)
|
|
|
|
response = self.get_request(self.root_uri + chassis_uri)
|
|
|
|
|
|
|
|
if response['ret'] is False:
|
|
|
|
if response['ret'] is False:
|
|
|
|
return response
|
|
|
|
return response
|
|
|
|
result['ret'] = True
|
|
|
|
result['ret'] = True
|
|
|
@ -713,7 +712,7 @@ class RedfishUtils(object):
|
|
|
|
|
|
|
|
|
|
|
|
if command in payloads.keys():
|
|
|
|
if command in payloads.keys():
|
|
|
|
payload = {'IndicatorLED': payloads[command]}
|
|
|
|
payload = {'IndicatorLED': payloads[command]}
|
|
|
|
response = self.patch_request(self.root_uri + chassis_uri, payload)
|
|
|
|
response = self.patch_request(self.root_uri + self.chassis_uri, payload)
|
|
|
|
if response['ret'] is False:
|
|
|
|
if response['ret'] is False:
|
|
|
|
return response
|
|
|
|
return response
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|