def _get_result(self):
        """Get a single oid value"""

        result = self.query_oid.result
        if isinstance(result, failure.Failure):
            return result

        oid = self.conf['oid']
        result = dict(self.query_oid.result)
        if oid not in result:
            raise errors.TestCritical("No value received for %s" % (oid,))
        result = result[oid]

        if self.query_scale:
            oid = self.conf['scale_oid']
            scale = dict(self.query_scale.result)
            if oid not in result:
                raise errors.TestCritical("No value received for %s" % (oid,))
            scale = scale[oid]
            result = self._do_scale(scale, result)

        return str(result)
dataset/ETHPy150Open marineam/nagcat/python/nagcat/plugins/query_snmp.py/SNMPQuery._get_result/original