chef-sugar-rackspace 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/sugar/rackspace/ip.rb +2 -2
- data/lib/chef/sugar/rackspace/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: e5e11a9c2904936d8b3f9d2cc0fa75839b7b0ad5
|
4
|
+
data.tar.gz: da87e60452e18029c5efb55de8f3feef43be252c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03da112c9516f2f613327a76777e618735736ae755760f987205acd3933665020bd2938b41bdf504cc96958b660e7d483d5cb859e17091d3baf4a454a2b058ab
|
7
|
+
data.tar.gz: d7efaa4010cc014eefd1fe34dc8ac09dc8bccde2e737be3ce61088d8dce96ff9e61c15e04e953e54fee7136cb9f5781ca3d0276d108f9b1f7a44c170126320ed
|
@@ -21,7 +21,7 @@ class Chef
|
|
21
21
|
end
|
22
22
|
|
23
23
|
## Return the first ip address in ips
|
24
|
-
return net['ips'].
|
24
|
+
return net['ips'].first['ip']
|
25
25
|
end
|
26
26
|
|
27
27
|
def best_rackspace_ip_for(node, other)
|
@@ -37,7 +37,7 @@ class Chef
|
|
37
37
|
node_clnet.each_key do |node_label|
|
38
38
|
other_clnet.each_key do |other_label|
|
39
39
|
if node_label == other_label
|
40
|
-
ip = other_clnet[node_label]['ips'].
|
40
|
+
ip = other_clnet[node_label]['ips'].first['ip']
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|