Skip to content

Commit

Permalink
Merge pull request #22 from hellohaptik/parvez301-patch-1
Browse files Browse the repository at this point in the history
Replace variables
  • Loading branch information
parvez301 authored Apr 6, 2021
2 parents aa28cb5 + f1cdc0e commit c639c38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unleash-client-python/FeatureToggle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ def fetch_feature_toggles():

if cas_name == FeatureToggles.__cas_name and environment == FeatureToggles.__environment:
# Strip CAS and ENV name from feature name
active_cas_env_name = f'{FeatureToggles.__cas_name}.'
f'{FeatureToggles.__environment}.'
active_cas_env_name = f'{cas_name}.{environment}.'
full_feature_name = full_feature_name.replace(active_cas_env_name, '')
if full_feature_name not in response:
response[full_feature_name] = {}
Expand Down

0 comments on commit c639c38

Please sign in to comment.