Code Duplication    Length = 12-13 lines in 2 locations

glances/exports/glances_riemann.py 1 location

@@ 81-92 (lines=12) @@
78
                data = {'host': self.hostname, 'service': name + " " + columns[i], 'metric': points[i]}
79
                logger.debug(data)
80
                try:
81
                    self.client.send(data)
82
                except Exception as e:
83
                    logger.error("Cannot export stats to Riemann (%s)" % e)
84

glances/exports/glances_opentsdb.py 1 location

@@ 101-113 (lines=13) @@
98
97
96