From 3a34e9857f60cfe781fa7f6b12198cd63e44075d Mon Sep 17 00:00:00 2001 From: Doug Beatty Date: Sat, 23 Mar 2024 12:16:41 -0600 Subject: [PATCH] Make `args` variable un-modified by `dbt.invoke(args)` --- core/dbt/cli/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dbt/cli/main.py b/core/dbt/cli/main.py index 6677233bda7..deff7d8d341 100644 --- a/core/dbt/cli/main.py +++ b/core/dbt/cli/main.py @@ -54,7 +54,7 @@ def __init__( def invoke(self, args: List[str], **kwargs) -> dbtRunnerResult: try: - dbt_ctx = cli.make_context(cli.name, args) + dbt_ctx = cli.make_context(cli.name, args.copy()) dbt_ctx.obj = { "manifest": self.manifest, "callbacks": self.callbacks,