conoha 0.8.0 → 0.8.1

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: 151619e4a592951d23e53b1ce1f62226107120f8
4
- data.tar.gz: 32f638a9b154a366c300d37d80f15ecfe74e9dc9
3
+ metadata.gz: 0e557cb27ab1ae1f7532872ba763d257bfe27079
4
+ data.tar.gz: d360ddd0ef2759aaaa9f7d95164e70c461560587
5
5
  SHA512:
6
- metadata.gz: 744f04a08ba3d8670fdbb3660a8ca5ceab22a5ff074b93225bdc70638170439fa299c1861f3c449f2dc031b70ba9c826583491d7b41caea8063f09302d4e2a80
7
- data.tar.gz: 535a1f635648db1f8ff79a85b40ab64dc2bc4f6ef7e247869b5b4415db384d2c3063047ce4b74410718cd3d40f26f595a4b421ef4216950f033cfd44d50f8f35
6
+ metadata.gz: 05a299e26608010374ee15900f3a167a16f5866ef5aa695107e6711ba39e8475328a8eac174a89dfce41589ff0f1214a0eb0f3ccc5e6881f362cbd732ef8382a
7
+ data.tar.gz: 50ea78edf0182ec6a7e712f5727a613e4c2148dcabf848a5f98db43b2b67f034ecb0d397d98e9cc98b3c9455809643500eddae3b462a7f53690a1445f70eba01
data/lib/conoha.rb CHANGED
@@ -107,7 +107,7 @@ class Conoha
107
107
  end
108
108
 
109
109
  def self.rebuild(server_id, os)
110
- image_ref_from_image_tag(image_tag_dictionary(os))
110
+ image_ref = image_ref_from_image_tag(image_tag_dictionary(os))
111
111
  uri = "https://compute.tyo1.conoha.io/v2/#{tenant_id}/servers/#{server_id}/action"
112
112
  payload = {
113
113
  rebuild: {
@@ -129,6 +129,7 @@ class Conoha
129
129
  def self.ip_address_of(server_id)
130
130
  uri = "https://compute.tyo1.conoha.io/v2/#{tenant_id}/servers/#{server_id}"
131
131
  res = https_get uri, authtoken
132
+ # NOTE: values[1] is needed if eth1 exists.
132
133
  JSON.parse(res.body)["server"]["addresses"].values[0].map{ |e| e["addr"] }
133
134
  end
134
135
 
@@ -1,3 +1,3 @@
1
1
  module ConohaVersion
2
- ITSELF = "0.8.0"
2
+ ITSELF = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conoha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-30 00:00:00.000000000 Z
11
+ date: 2016-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler