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)
  • Loading branch information
gshank authored and github-actions[bot] committed Mar 17, 2022
1 parent c8f3f22 commit 8b26bdc
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 8b26bdc

Please sign in to comment.