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] = {}