We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4949183 commit fa5d413Copy full SHA for fa5d413
1 file changed
lib/softlayer/Config.rb
@@ -121,7 +121,8 @@ def Config.file_settings(*additional_files)
121
search_path.each do |file_path|
122
if File.readable? file_path
123
config = ConfigParser.new file_path
124
- softlayer_section = config['softlayer']
+ profile_name = ENV['SL_PROFILE'] || 'softlayer'
125
+ softlayer_section = config[profile_name]
126
127
if softlayer_section
128
result[:api_key] = softlayer_section['api_key'] if softlayer_section['api_key']
0 commit comments