create_cfs_session

Function create_cfs_session 

Source
pub async fn create_cfs_session(
    infra: &InfraContext<'_>,
    token: &str,
    gitea_token: &str,
    params: CreateCfsSessionParams<'_>,
) -> Result<(String, String), Error>
Expand description

Create a CFS session, expanding the ansible-limit hosts expression to xnames first.

params.ansible_limit is parsed as a hostlist / NID / xname expression the same way other entry points do, then joined with commas for the CFS request — CFS itself is happy with either form but downstream tooling expects xnames. When params.ansible_limit is None, the session targets the full group selected by params.group. Returns (cfs_configuration_name, cfs_session_name).