Skip to content
Snippets Groups Projects
Verified Commit 1ea7d1ac authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Only run validation workflows on subscriptions that are both ACTIVE and in sync

parent e473a973
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment