onering-client 0.0.93 → 0.0.94
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/onering.rb +1 -1
- data/lib/onering/api.rb +2 -2
- metadata +1 -1
data/lib/onering.rb
CHANGED
data/lib/onering/api.rb
CHANGED
@@ -320,8 +320,8 @@ module Onering
|
|
320
320
|
Onering::Logger.info("Using token authentication mechanism", "Onering::API")
|
321
321
|
|
322
322
|
# get first keyfile found
|
323
|
-
key = Onering::Config.get('authentication.key')
|
324
|
-
raise Errors::AuthenticationMissing.new("
|
323
|
+
key = Onering::Config.get('authentication.key', Onering::Config.get('authentication.keyfile'))
|
324
|
+
raise Errors::AuthenticationMissing.new("Token authentication specified, but cannot find a token config or as a command line argument") if key.nil?
|
325
325
|
|
326
326
|
# set auth mechanism
|
327
327
|
Onering::API.headers({
|