Skip to content

Commit

Permalink
[api][webui] Fix feature switching
Browse files Browse the repository at this point in the history
Merging a hash with symbols and a yml file with strings as keys is
not good
  • Loading branch information
hennevogel committed Feb 2, 2017
1 parent 37c6717 commit e9f2059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/lib/feature_switch/obs_repository.rb
Expand Up @@ -12,7 +12,7 @@ class ObsRepository < YamlRepository
# @return [Array<Symbol>] list of active features
#
def active_features
data = read_file(@yaml_file_name)
data = read_file(@yaml_file_name).with_indifferent_access
data['features'] = DEFAULTS.merge(data['features'])
get_active_features(data, @environment)
end
Expand Down

0 comments on commit e9f2059

Please sign in to comment.