Skip to content

Commit

Permalink
feat: rename infractl to terranova env vars (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Mannocci <[email protected]>
  • Loading branch information
amannocci authored Mar 4, 2024
1 parent eb05d36 commit 21be98a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion terranova/binds.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _exec(self, *args, **kwargs) -> RunningCommand:
def is_allowed_env_var(env_var: str) -> bool:
return (
env_var.startswith("TF_")
or env_var.startswith("INFRACTL_")
or env_var.startswith("TERRANOVA_")
# Implicit credentials for s3 backend
or env_var.startswith("AWS_")
or env_var in ["HOME", "PATH"]
Expand Down
6 changes: 3 additions & 3 deletions terranova/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ class ResourcesRunbook:
def exec(self, path: str, workdir: Path) -> None:
"""Try to execute the runbook."""
env = {
"INFRACTL_PATH": path,
"INFRACTL_CONF_DIR": SharedContext.conf_dir().absolute().as_posix(),
"INFRACTL_RUNBOOK_NAME": self.name,
"TERRANOVA_PATH": path,
"TERRANOVA_CONF_DIR": SharedContext.conf_dir().absolute().as_posix(),
"TERRANOVA_RUNBOOK_NAME": self.name,
}
if os.getenv("PATH"):
env["PATH"] = os.getenv("PATH")
Expand Down
2 changes: 1 addition & 1 deletion terranova/terranova.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
help="Conf directory path.",
type=click.Path(exists=True, path_type=Path),
required=True,
envvar="INFRACTL_CONF_DIR",
envvar="TERRANOVA_CONF_DIR",
default="./conf",
)
@click.version_option(__version__)
Expand Down

0 comments on commit 21be98a

Please sign in to comment.