Ejemplo n.º 1
0
 def governor(self):
     return AnarchyGovernor.get(self.spec['governorRef']['name'])
 def get_governor(self, runtime):
     governor = AnarchyGovernor.get(self.spec['governor'])
     if not governor:
         operator_logger.error('Unable to find governor %s',
                               self.governor_name)
     return governor