We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db56014 commit 921e6fdCopy full SHA for 921e6fd
1 file changed
lib/softlayer/Client.rb
@@ -120,10 +120,7 @@ def initialize(options = {})
120
# and assign a time out if the settings offer one
121
@network_timeout = settings[:timeout] if settings.has_key?(:timeout)
122
123
- if token_based?
124
- raise "A SoftLayer Client requires a userId" if !@userId
125
- raise "A SoftLayer Client requires an authToken" if !@authToken || @api_key.empty?
126
- else
+ unless token_based?
127
raise "A SoftLayer Client requires a username" if !@username || @username.empty?
128
raise "A SoftLayer Client requires an api_key" if !@api_key || @api_key.empty?
129
end
0 commit comments