2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-17 21:23:18 +00:00

Merge pull request #1 from jjohnson42/addstateids

Add numeric state_ids to sensor readings
This commit is contained in:
Jarrod Johnson 2015-07-21 10:58:29 -04:00
commit e55f55677b
2 changed files with 4 additions and 1 deletions

View File

@ -746,6 +746,8 @@ class SensorReadings(ConfluentMessage):
sensordict['units'] = sensor['units']
if 'states' in sensor:
sensordict['states'] = sensor['states']
if 'state_ids' in sensor:
sensordict['state_ids'] = sensor['state_ids']
if 'health' in sensor:
sensordict['health'] = sensor['health']
if 'type' in sensor:

View File

@ -279,7 +279,8 @@ persistent_ipmicmds = {}
def _dict_sensor(pygreading):
retdict = {'name': pygreading.name, 'value': pygreading.value,
'states': pygreading.states, 'units': pygreading.units,
'states': pygreading.states, 'state_ids': pygreading.state_ids,
'units': pygreading.units,
'health': _str_health(pygreading.health),
'type': pygreading.type,
}