Skip to content

Commit

Permalink
refine env resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Sep 8, 2020
1 parent bfa8a19 commit cc5a011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# resolve_key - partially process config file using this as a root key - use this to prevent unnecessary lookups
# return_key - return values for a specific hash key - use this to filter the return object
def load_uc3_config(name:, resolve_key: nil, return_key: nil)
myenv = Socket.gethostname.gsub(/uc3-.*-/, '')
myenv = Socket.gethostname.match?(/uc3-.*-/) ? Socket.gethostname.gsub(/uc3-.*-/, '') : 'stg'
resolver = Uc3Ssm::ConfigResolver.new(
{
def_value: 'NOT_APPLICABLE',
Expand Down

0 comments on commit cc5a011

Please sign in to comment.