fog-ecloud 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/lib/fog/compute/ecloud.rb +7 -2
- data/lib/fog/ecloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 459d2651c0917b467a2109cc810310357389222d
|
4
|
+
data.tar.gz: f5acec7647a8e21e9f6673ca50b2c32d4692db7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 881243ebcd9138ec3cd4bd8c1caf94411cef534e27780459b15b93c95e6d8e402298dca795d8896885729dbb3e2ad10849f077fb1afa43b989d676edcb762bae
|
7
|
+
data.tar.gz: ddf645d726fc3d5539a4da82c203718ada9d2d8d436c466cf7ce0ca79aab13e35b58c65d9c4a2a2521b8b67d0bebd40aae753ce00067a2f04a518ec2f9deec12
|
data/lib/fog/compute/ecloud.rb
CHANGED
@@ -289,8 +289,8 @@ module Fog
|
|
289
289
|
@persistent = options[:persistent] || false
|
290
290
|
@version = options[:ecloud_version] || "2013-06-01"
|
291
291
|
@authentication_method = options[:ecloud_authentication_method] || :cloud_api_auth
|
292
|
-
@access_key = options[:ecloud_access_key]
|
293
|
-
@private_key = options[:ecloud_private_key]
|
292
|
+
@access_key = options[:ecloud_access_key]
|
293
|
+
@private_key = options[:ecloud_private_key]
|
294
294
|
if @private_key.nil? || @authentication_method == :basic_auth
|
295
295
|
@authentication_method = :basic_auth
|
296
296
|
@username = options[:ecloud_username]
|
@@ -299,6 +299,11 @@ module Fog
|
|
299
299
|
raise ArgumentError, "No credentials (cloud auth, or basic auth) passed!"
|
300
300
|
end
|
301
301
|
else
|
302
|
+
if @access_key.nil?
|
303
|
+
raise ArgumentError, "Incomplete cloud auth credentials supplied!"
|
304
|
+
end
|
305
|
+
@private_key = @private_key.to_s
|
306
|
+
@access_key = @access_key.to_s
|
302
307
|
@hmac = Fog::HMAC.new("sha256", @private_key)
|
303
308
|
end
|
304
309
|
end
|
data/lib/fog/ecloud/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-ecloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paulo Henrique Lopes Ribeiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|