fog-sakuracloud 1.7.4 → 1.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/fog/sakuracloud/models/compute/servers.rb +2 -1
- data/lib/fog/sakuracloud/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce501af63351a0e3713f42ba1985089ed616e6aa
|
4
|
+
data.tar.gz: 952cb6c4a07f776dc925c03a1fc1de16dbc10ef6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5644f0f7e068199b94583bfc46689da89a029cdd45c6f4fd8646ac638e9dbe6663c03fb069cc31c6bcf6e9f7ace8e51359dfbcabbcf10520e94452cb81136710
|
7
|
+
data.tar.gz: daeed65251d89d9b3f80e9be0a8d93e051d8507b49a3f13b9aa98fe251e2940c8f022461f1ddcea6f8e119674e64a5307748ee558ef6c48a9ada0765d4d0fc5c
|
data/CHANGELOG.md
CHANGED
@@ -44,8 +44,9 @@ module Fog
|
|
44
44
|
Fog::Logger.warning("Create Volume")
|
45
45
|
sakuracloud_api_token = options[:sakuracloud_api_token] || Fog.credentials[:sakuracloud_api_token]
|
46
46
|
sakuracloud_api_token_secret = options[:sakuracloud_api_token_secret] || Fog.credentials[:sakuracloud_api_token_secret]
|
47
|
+
api_zone = service.instance_variable_get(:@api_zone)
|
47
48
|
size_mb = options[:volume][:size_mb].to_i || 20480
|
48
|
-
volume = Fog::Volume::SakuraCloud.new(:sakuracloud_api_token => sakuracloud_api_token, :sakuracloud_api_token_secret => sakuracloud_api_token_secret)
|
49
|
+
volume = Fog::Volume::SakuraCloud.new(:sakuracloud_api_token => sakuracloud_api_token, :sakuracloud_api_token_secret => sakuracloud_api_token_secret, :api_zone => api_zone)
|
49
50
|
disk = volume.disks.create :name => Fog::UUID.uuid,
|
50
51
|
:plan => options[:volume][:diskplan].to_i,
|
51
52
|
:source_archive => options[:volume][:sourcearchive].to_s,
|