onering-client 0.0.93 → 0.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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({
|