Skip to content

Commit 74adf8e

Browse files
committed
TRIVIAL: gooddata-dbt - process GOODDATA_PROFILES envvar as list
1 parent 1095c73 commit 74adf8e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gooddata-dbt/gooddata_dbt/args.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,18 @@ def set_gooddata_endpoint_args(parser: argparse.ArgumentParser) -> None:
3636
default=os.getenv("GOODDATA_OVERRIDE_HOST"),
3737
)
3838
# Alternative - use profile.yml file
39+
env_profiles = os.getenv("GOODDATA_PROFILES")
40+
if env_profiles:
41+
env_profiles = env_profiles.split(" ")
42+
else:
43+
env_profiles = []
3944
parser.add_argument(
4045
"-gp",
4146
"--gooddata-profiles",
4247
nargs="*",
4348
help="Profiles in profile.yml file. Overrides gooddata-host, gooddata-token and gooddata-override-host."
4449
+ "You can use multiple profiles separated by space to deliver models/analytics to multiple organizations.",
45-
default=os.getenv("GOODDATA_PROFILES", None),
50+
default=env_profiles,
4651
)
4752

4853

0 commit comments

Comments
 (0)