2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-11 18:42:29 +00:00

Fix states of absent PSU in NX-API

This commit is contained in:
Jarrod Johnson
2025-03-28 17:30:49 -04:00
parent 92ac49b561
commit df2c6a4e18

View File

@@ -62,7 +62,7 @@ def add_sensedata(component, sensedata, name=None):
senseinfo['states'] = ['Present']
if attrs['operSt'] == 'empty':
senseinfo['health'] = 'critical'
senseinfo['states'] = 'Absent'
senseinfo['states'] = ['Absent']
if senseinfo:
sensedata.append(senseinfo)
for key in component: