예제 #1
0
 def filter_instances(self, instances, node_process=None, service=None):
     if node_process:
         return su.filter_by_node_process(instances, node_process)
     if service:
         return su.filter_by_service(instances, service)
     return list(instances)
예제 #2
0
파일: hue.py 프로젝트: butterfy76/sahara
 def restart(self, instances):
     for node_process in [HUE]:
         filtered_instances = su.filter_by_node_process(instances,
                                                        node_process)
         if filtered_instances:
             node_process.restart(filtered_instances)
예제 #3
0
파일: hue.py 프로젝트: frgaudet/sahara
 def restart(self, instances):
     for node_process in [HUE]:
         filtered_instances = su.filter_by_node_process(instances,
                                                        node_process)
         if filtered_instances:
             node_process.restart(filtered_instances)
예제 #4
0
 def filter_instances(self, instances, node_process=None, service=None):
     if node_process:
         return su.filter_by_node_process(instances, node_process)
     if service:
         return su.filter_by_service(instances, service)
     return list(instances)