Skip to content

Commit

Permalink
Use cli_vars instead of context to create package and selector render…
Browse files Browse the repository at this point in the history
…ers (#4878) (#4886)

Co-authored-by: Gerda Shank <gerda@dbtlabs.com>
  • Loading branch information
github-actions[bot] and gshank authored Mar 21, 2022
1 parent c6cde6e commit 88fc45b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changes/unreleased/Fixes-20220316-155420.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Fixes
body: Use cli_vars instead of context to create package and selector renderers
time: 2022-03-16T15:54:20.608384-04:00
custom:
Author: gshank
Issue: "4876"
PR: "4878"
4 changes: 2 additions & 2 deletions core/dbt/config/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ def name(self):
'Project config'

def get_package_renderer(self) -> BaseRenderer:
return PackageRenderer(self.context)
return PackageRenderer(self.ctx_obj.cli_vars)

def get_selector_renderer(self) -> BaseRenderer:
return SelectorRenderer(self.context)
return SelectorRenderer(self.ctx_obj.cli_vars)

def render_project(
self,
Expand Down

0 comments on commit 88fc45b

Please sign in to comment.