pub async fn from_user_hosts_expression_to_xname_vec(
infra: &InfraContext<'_>,
shasta_token: &str,
hosts_expression: &str,
is_include_siblings: bool,
) -> Result<Vec<String>, Error>Expand description
Convenience wrapper that fetches node metadata from the backend and resolves a hosts expression to a sorted, deduplicated list of xnames.
Combines the two-step pattern of
[ComponentTrait::get_node_metadata_available] (called on the
backend held in InfraContext) followed by
from_hosts_expression_to_xname_vec that recurs in many
command files.
See the module docs for the supported expression grammar.
ยงErrors
- [
Error::NetError] / [Error::CsmError] fromget_node_metadata_available. - Any error produced by
from_hosts_expression_to_xname_vec(Error::BadRequest,Error::InvalidNodeId).