Skip to content

Commit

Permalink
refactor(TYPES): comply with pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Apr 12, 2023
1 parent f8e26b6 commit 78e9f5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mac_maker/ansible_controller/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]]


Expand Down Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit 78e9f5e

Please sign in to comment.