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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99d1843863fb6224bc6d2418d8ded6f8ef653d35
4
- data.tar.gz: 4e0a7ba5c2d0f9561e54239355956736abe3629e
3
+ metadata.gz: ce501af63351a0e3713f42ba1985089ed616e6aa
4
+ data.tar.gz: 952cb6c4a07f776dc925c03a1fc1de16dbc10ef6
5
5
  SHA512:
6
- metadata.gz: 965a925de3fb1c8278cbdd40fd9b64d4d343757768d62ca6f8b6beed5dfbd44935f54af65dd2e1f2cfe2de3d879885763a1837f8b41cc363673cdb3c126841c4
7
- data.tar.gz: 62bb12455f06891aa2168c2a461a9ce439df6ff9f7c472ef7844068456301dfd5ee1d5a991c486b381b231c7251f5aa7aae9fcde56c78aaa97a618ae7147045f
6
+ metadata.gz: 5644f0f7e068199b94583bfc46689da89a029cdd45c6f4fd8646ac638e9dbe6663c03fb069cc31c6bcf6e9f7ace8e51359dfbcabbcf10520e94452cb81136710
7
+ data.tar.gz: daeed65251d89d9b3f80e9be0a8d93e051d8507b49a3f13b9aa98fe251e2940c8f022461f1ddcea6f8e119674e64a5307748ee558ef6c48a9ada0765d4d0fc5c
@@ -1,5 +1,9 @@
1
1
  # Changelog of fog-sakuracloud
2
2
 
3
+ ## v1.7.5
4
+
5
+ - Bug: Server#create_and_attach_volume ignores api_zone. => TODO: Cleanup
6
+
3
7
  ## v1.7.4
4
8
 
5
9
  - Bug: forgot zone is1a...
@@ -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,
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Sakuracloud
3
- VERSION = "1.7.4"
3
+ VERSION = "1.7.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-sakuracloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.4
4
+ version: 1.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly