示例#1
0
 def get_sensor_reading(self, sensorname):
     if self.is_fpc:
         return nextscale.get_sensor_reading(sensorname, self.ipmicmd,
                                             self._fpc_variant)
     elif self.has_imm:
         return self.immhandler.get_oem_sensor_reading(
             sensorname, self.ipmicmd)
     return ()
示例#2
0
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.get_sensor_names(self._fpc_variant):
             yield nextscale.get_sensor_reading(name, self.ipmicmd,
                                                self._fpc_variant)
     elif self.has_imm:
         for name in self.immhandler.get_oem_sensor_names(self.ipmicmd):
             yield self.immhandler.get_oem_sensor_reading(
                 name, self.ipmicmd)
示例#3
0
 def get_sensor_reading(self, sensorname):
     if self.is_fpc:
         return nextscale.get_sensor_reading(sensorname, self.ipmicmd)
     return ()
示例#4
0
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.fpc_sensors:
             yield nextscale.get_sensor_reading(name, self.ipmicmd)
示例#5
0
文件: handler.py 项目: throbs/pyghmi
 def get_sensor_reading(self, sensorname):
     if self.is_fpc:
         return nextscale.get_sensor_reading(sensorname, self.ipmicmd)
     return ()
示例#6
0
文件: handler.py 项目: throbs/pyghmi
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.get_sensor_names():
             yield nextscale.get_sensor_reading(name, self.ipmicmd)
示例#7
0
 def get_sensor_data(self):
     if self.is_fpc:
         for name in nextscale.get_sensor_names(self._fpc_variant):
             yield nextscale.get_sensor_reading(name, self.ipmicmd,
                                                self._fpc_variant)