def __print_progress(self): while True: response = self.client.describe_stacks(StackName=self.cluster_name) if "IN_PROGRESS" not in response['Stacks'][0]['StackStatus']: break all_events = get_stack_events(self.client, self.cluster_name) print_new_events(all_events, self.existing_events) self.existing_events = all_events sleep(5) log_bold("Finished and Status: %s" % (response['Stacks'][0]['StackStatus']))
def _print_progress(self): while True: response = self.client.describe_stacks(StackName=self.stack_name) if "IN_PROGRESS" not in response['Stacks'][0]['StackStatus']: break all_events = get_stack_events(self.client, self.stack_name) print_new_events(all_events, self.existing_events) self.existing_events = all_events sleep(5) final_status = response['Stacks'][0]['StackStatus'] if "FAIL" in final_status: log_err("Finished with status: %s" % (final_status)) else: log_bold("Finished with status: %s" % (final_status))