Skip to content

Commit eebc246

Browse files
committed
change env vars used for the infrahubctl command to align with SDK
INFRAHUBCTL_TIMEOUT > INFRAHUB_TIMEOUT INFRAHUBCTL_CONCURRENT_EXECUTION > INFRAHUBCTL_MAX_CONCURRENT_EXECUTION
1 parent 5f73796 commit eebc246

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Aligned the environment variables used by the `infrahubctl` with the environment variables used by the SDK

infrahub_sdk/ctl/cli_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ async def run(
133133
concurrent: int = typer.Option(
134134
4,
135135
help="Maximum number of requests to execute at the same time.",
136-
envvar="INFRAHUBCTL_CONCURRENT_EXECUTION",
136+
envvar="INFRAHUB_MAX_CONCURRENT_EXECUTION",
137137
),
138-
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUBCTL_TIMEOUT"),
138+
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUB_TIMEOUT"),
139139
variables: list[str] | None = typer.Argument(
140140
None, help="Variables to pass along with the query. Format key=value key=value."
141141
),

infrahub_sdk/ctl/exporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def dump(
2626
concurrent: int = typer.Option(
2727
4,
2828
help="Maximum number of requests to execute at the same time.",
29-
envvar="INFRAHUBCTL_CONCURRENT_EXECUTION",
29+
envvar="INFRAHUB_MAX_CONCURRENT_EXECUTION",
3030
),
31-
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUBCTL_TIMEOUT"),
31+
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUB_TIMEOUT"),
3232
exclude: list[str] = typer.Option(
3333
["CoreAccount"],
3434
help="Prevent node kind(s) from being exported, CoreAccount is excluded by default",

infrahub_sdk/ctl/importer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ def load(
2727
concurrent: int = typer.Option(
2828
4,
2929
help="Maximum number of requests to execute at the same time.",
30-
envvar="INFRAHUBCTL_CONCURRENT_EXECUTION",
30+
envvar="INFRAHUB_MAX_CONCURRENT_EXECUTION",
3131
),
32-
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUBCTL_TIMEOUT"),
32+
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUB_TIMEOUT"),
3333
) -> None:
3434
"""Import nodes and their relationships into the database."""
3535
console = Console()

0 commit comments

Comments
 (0)