diff --git a/gso/utils/workflow_steps.py b/gso/utils/workflow_steps.py index 939feff6d433547b9cafbc7390f5c20100d80199..6ab00644bef668cecdf1c159e9502ec4879ff8a7 100644 --- a/gso/utils/workflow_steps.py +++ b/gso/utils/workflow_steps.py @@ -6,7 +6,6 @@ from typing import Any from orchestrator import inputstep, step from orchestrator.config.assignee import Assignee from orchestrator.types import State, UUIDstr -from orchestrator.utils.errors import ProcessFailureError from orchestrator.utils.json import json_dumps from pydantic import ConfigDict from pydantic_forms.core import FormPage @@ -122,15 +121,3 @@ def prompt_sharepoint_checklist_url(checklist_url: str) -> FormGenerator: yield SharepointPrompt return {} - - -@step("Detect configuration drift") -def detect_configuration_drift(callback_result: dict) -> None: - """Inspect the diff for deploying configuration, to make sure there is no drift.""" - if callback_result["return_code"] != 0: - # If deployment never was successful in the first place, raise an exception. - raise ProcessFailureError(message="Provisioning proxy failure", details=callback_result) - - output_lines = callback_result["output"] - if any(str.startswith(line, "-") or str.startswith(line, "+") for line in callback_result["output"]): - raise ProcessFailureError(message="Configuration drift detected", details=output_lines)