distcloud/distributedcloud/dcmanager/orchestrator/states/software/deploy_complete.py

23 lines
607 B
Python

#
# Copyright (c) 2023 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from dcmanager.common import consts
from dcmanager.orchestrator.states.base import BaseState
class DeployCompleteState(BaseState):
"""Deploy complete software orchestration state"""
def __init__(self, region_name):
super(DeployCompleteState, self).__init__(
next_state=consts.STRATEGY_STATE_SW_FINISH_STRATEGY,
region_name=region_name,
)
def perform_state_action(self, strategy_step):
"""Deploy complete region status"""
return self.next_state