Commits  committed cc6bb3c

Changed get_entity_counters returned dictionary keys, from NameInfoKey to GroupInfoKey.NameInfoKey to avoid missing results due to duplicate names.


  • Participants
  • Parent commits 4e2ebec
  • Branches master

Comments (0)

Files changed (1)

File pysphere/

         counter_obj = self.query_perf_counter([metric.CounterId 
                                                for metric in metrics])
-        return dict([(c.NameInfo.Key, c.Key) for c in counter_obj]) 
+        return dict([("%s.%s" % (c.GroupInfo.Key, c.NameInfo.Key), c.Key)
+                     for c in counter_obj]) 
     def get_entity_statistic(self, entity, counters):