def _getMetricConf(self, host_id): try: return self._temp[host_id] except KeyError, e: metric_conf = host_metric_conf(host_id) self._temp[host_id] = metric_conf return metric_conf
def metricList(self, hostID): try: metric_list = host_metric_conf(hostID) #logger.warning(type(metric_list)) return 1, metric_list except Exception, e: logger.exception("") return 0, ''