Skip to content

Commit

Permalink
resolve identifier same as name
Browse files Browse the repository at this point in the history
  • Loading branch information
z3z1ma committed Jul 31, 2022
1 parent 49ea227 commit aa9cbd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dbt_feature_flags/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def add_ff_extension(func):
def with_ff_extension(*args, **kwargs):
env = func(*args, **kwargs)
target = Target(
identifier="dbt-feature-flags", name=os.getenv("DBT_TARGET", "default")
identifier="dbt-" + os.getenv("DBT_TARGET", "default"),
name=os.getenv("DBT_TARGET", "default").title(),
)
bool_variation = functools.partial(ff_client.bool_variation, target=target, default=False)
string_variation = functools.partial(ff_client.string_variation, target=target, default="")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dbt-feature-flags"
version = "0.1.0"
version = "0.1.1"
description = "Use feature flags in dbt models"
authors = ["z3z1ma <[email protected]>"]
include = ["zzz_dbt_feature_flags.pth"]
Expand Down

0 comments on commit aa9cbd4

Please sign in to comment.