lib/fog/sakuracloud/compute.rb in fog-sakuracloud-1.7.0 vs lib/fog/sakuracloud/compute.rb in fog-sakuracloud-1.7.1
- old
+ new
@@ -36,10 +36,10 @@
].join(':'))
Fog.credentials[:sakuracloud_api_token] = options[:sakuracloud_api_token]
Fog.credentials[:sakuracloud_api_token_secret] = options[:sakuracloud_api_token_secret]
@sakuracloud_api_url = options[:sakuracloud_api_url] || 'https://secure.sakura.ad.jp'
- @api_zone = options[:api_zone] || 'is1b'
+ @api_zone = options[:api_zone] || Fog.credentials[:sakuracloud_api_zone] || 'is1b'
Fog::SakuraCloud.validate_api_zone!(@api_zone)
@connection = Fog::Core::Connection.new(@sakuracloud_api_url)
end
end