Esempio n. 1
0
 def get_scsi_product_id(self):
     try:
         return self.sysfs_device.get_model().strip()
     except IOError:
         logger.exception(
             "failed to get production from sysfs, trying to send a CDB")
         return InquiryInformationMixin.get_scsi_product_id(self)
Esempio n. 2
0
 def get_scsi_revision(self):
     try:
         return self.sysfs_device.get_revision().strip()
     except IOError:
         logger.exception(
             "failed to get scsi revision from sysfs, trying to send a CDB")
         return InquiryInformationMixin.get_scsi_revision(self)
Esempio n. 3
0
 def get_scsi_product_id(self):
     try:
         return self.sysfs_device.get_model().strip()
     except IOError:
         logger.exception("failed to get production from sysfs, trying to send a CDB")
         return InquiryInformationMixin.get_scsi_product_id(self)
Esempio n. 4
0
 def get_scsi_revision(self):
     try:
         return self.sysfs_device.get_revision().strip()
     except IOError:
         logger.exception("failed to get scsi revision from sysfs, trying to send a CDB")
         return InquiryInformationMixin.get_scsi_revision(self)