ska_oso_scripting.functions.environment
The ska_oso_scripting.functions.environment module contains code used to identify the execution environment and to verify commands are appropriate to that environment.
- exception ska_oso_scripting.functions.environment.ExecutionEnvironmentError(expected_env, msg='Telescope environment required by script does not match deployment')[source]
Error raised when execution environment does not match the targeted telescope.
- ska_oso_scripting.functions.environment.check_environment_for_consistency(request_json: str) None [source]
Confirm that the request is correct for the current environment, raising an ExecutionEnvironmentError if there is a mismatch.
- Parameters:
request_json – The JSON control string to be tested