diff --git a/mac_maker/ansible_controller/environment.py b/mac_maker/ansible_controller/environment.py index 24b87f1..c760546 100644 --- a/mac_maker/ansible_controller/environment.py +++ b/mac_maker/ansible_controller/environment.py @@ -7,7 +7,7 @@ from .. import config from ..utilities.state import TypeState -TypeStateAnsibleValues = Union[Literal["roles_path"], +StateAnsibleValuesType = Union[Literal["roles_path"], Literal["collections_path"]] @@ -37,7 +37,7 @@ def setup(self) -> None: self.log.debug("Environment: Ansible runtime environment is ready.") def _combine_env_with_state( - self, variable_name: str, state_name: TypeStateAnsibleValues + self, variable_name: str, state_name: StateAnsibleValuesType ) -> None: existing_env_value = self._env_to_list(variable_name) existing_state_value = self._state_to_list(state_name) @@ -50,7 +50,7 @@ def _env_to_list(self, variable_name: str) -> List[str]: return [] return value.split(":") - def _state_to_list(self, state_name: TypeStateAnsibleValues) -> List[str]: + def _state_to_list(self, state_name: StateAnsibleValuesType) -> List[str]: return self.state[state_name] def _list_to_env(self, list_content: List[str]) -> str: