Пример #1
0
def _ensure_resource_running(env, resource_id):
    env.report_processor.process(
        state.ensure_resource_running(env.get_cluster_state(), resource_id))
Пример #2
0
def _ensure_resource_running(env: LibraryEnvironment, resource_id):
    if env.report_processor.report(
            state.ensure_resource_running(env.get_cluster_state(),
                                          resource_id)).has_errors:
        raise LibraryError()
Пример #3
0
def _ensure_resource_running(env, resource_id):
    env.report_processor.process(
        state.ensure_resource_running(env.get_cluster_state(), resource_id)
    )