예제 #1
0
파일: groups.py 프로젝트: dian4554/otter
 def resume_scaling_group(self, request):
     """
     Resume a scaling group.  This means that scaling policies will now get
     executed as usual.  This is an idempotent operation - resuming an already
     running group does nothing.
     """
     group = self.store.get_scaling_group(self.log, self.tenant_id, self.group_id)
     return controller.resume_scaling_group(self.log, transaction_id(request), group)
예제 #2
0
def resume_scaling_group(request, log, tenant_id, scaling_group_id):
    """
    Resume a scaling group.  This means that scaling policies will now get
    executed as usual.  This is an idempotent operation - resuming an already
    running group does nothing.
    """
    group = get_store().get_scaling_group(log, tenant_id, scaling_group_id)
    return controller.resume_scaling_group(log, transaction_id(request), group)
예제 #3
0
파일: groups.py 프로젝트: manishtomar/otter
 def resume_scaling_group(self, request):
     """
     Resume a scaling group.  This means that scaling policies will now get
     executed as usual.  This is an idempotent operation - resuming an
     already running group does nothing.
     """
     group = self.store.get_scaling_group(
         self.log, self.tenant_id, self.group_id)
     return controller.resume_scaling_group(
         self.log, transaction_id(request), group, self.dispatcher)