From f1cdc0e2372c16fd943a93a21199d57ff87f9f52 Mon Sep 17 00:00:00 2001 From: Parvez Date: Tue, 6 Apr 2021 18:07:22 +0530 Subject: [PATCH] Update __init__.py --- unleash-client-python/FeatureToggle/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/unleash-client-python/FeatureToggle/__init__.py b/unleash-client-python/FeatureToggle/__init__.py index a04441e..58d2ada 100644 --- a/unleash-client-python/FeatureToggle/__init__.py +++ b/unleash-client-python/FeatureToggle/__init__.py @@ -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] = {}