Skip to content
Snippets Groups Projects
Commit 2c81a3c7 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

remove unnecessary begin steps

parent 38a50f00
No related branches found
No related tags found
No related merge requests found
Pipeline #90154 canceled
This commit is part of merge request !303. Comments created here will be created in the context of that merge request.
......@@ -125,6 +125,7 @@
"DSN": "https://sentry-dsn-url"
},
"MOODI": {
"host": "moodi.test.gap.geant.org"
"host": "moodi.test.gap.geant.org",
"moodi_enabled": false
}
}
......@@ -7,7 +7,7 @@ from orchestrator import inputstep, step
from orchestrator.config.assignee import Assignee
from orchestrator.types import State, UUIDstr
from orchestrator.utils.json import json_dumps
from orchestrator.workflow import StepList, begin, conditional
from orchestrator.workflow import StepList, conditional
from pydantic import ConfigDict
from pydantic_forms.core import FormPage
from pydantic_forms.types import FormGenerator
......@@ -407,7 +407,7 @@ def start_moodi() -> StepList:
"extra_vars": {"subscription": subscription},
}
return begin >> _is_moodi_enabled(begin >> lso_interaction(_start_moodi))
return _is_moodi_enabled(lso_interaction(_start_moodi))
def stop_moodi() -> StepList:
......@@ -422,4 +422,4 @@ def stop_moodi() -> StepList:
"extra_vars": None,
}
return begin >> _is_moodi_enabled(begin >> lso_interaction(_stop_moodi))
return _is_moodi_enabled(lso_interaction(_stop_moodi))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment