qmi.tools.proc.select_context_by_name
- qmi.tools.proc.select_context_by_name(cfg: CfgQmi, context_name: str) list[str]
Return input the context name in a list if it is valid.
- Parameters:
cfg – The current QMI configuration.
context_name – The name of the context to validate.
- Raises:
QMI_ApplicationException – If context name is not within known contexts or name is invalid.
- Returns:
The input context name in a list.
- Return type:
list