Example #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)
Example #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)
Example #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)
Example #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)