commit | 32e74e2e6cae4105e90b03a7fce51b8645d287f4 | [log] [tgz] |
---|---|---|
author | Norman James <nkskjames@gmail.com> | Tue Sep 15 21:28:06 2015 -0500 |
committer | Norman James <nkskjames@gmail.com> | Tue Sep 15 21:28:06 2015 -0500 |
tree | 00a3b7bcf923a4c9038e5d93aecbce53e2d60277 | |
parent | 1e25d1d055fdcb4f0c14a6363c3e0c4fa2103467 [diff] [blame] |
added some error handling
diff --git a/bin/Openbmc.py b/bin/Openbmc.py index 97d20bf..b320d52 100644 --- a/bin/Openbmc.py +++ b/bin/Openbmc.py
@@ -19,6 +19,10 @@ 'FATAL_ERROR' : 2, 'NOT_PRESENT' : 3, } + +EVENT_TYPES = ['NONE','FATAL','RECOVERABLE','WARNING','SW_ERROR','INFO'] + + ENUMS = { 'org.openbmc.SensorIntegerThreshold.state' : ['NOT_SET','NORMAL','LOWER_CRITICAL','LOWER_WARNING','UPPER_WARNING','UPPER_CRITICAL'],