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 +4 -4
- data/lib/conoha.rb +2 -1
- data/lib/conoha/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: 0e557cb27ab1ae1f7532872ba763d257bfe27079
|
4
|
+
data.tar.gz: d360ddd0ef2759aaaa9f7d95164e70c461560587
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/conoha/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|