From c5bb90cd58c777eff8d7ebc250eca11a6ebf9700 Mon Sep 17 00:00:00 2001 From: Karel van Klink <karel.vanklink@geant.org> Date: Mon, 3 Jun 2024 17:13:45 +0200 Subject: [PATCH] Only run validation workflows on subscriptions that are both ACTIVE and in sync --- gso/utils/workflow_steps.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gso/utils/workflow_steps.py b/gso/utils/workflow_steps.py index 939feff6..6ab00644 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) -- GitLab