cloud66_agent 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/cloud66_agent/utils/version.rb +1 -1
- data/lib/cloud66_agent/utils/vital_signs.rb +3 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjRhNGQ0MTAxN2IzYzhmZmMyMjE3MWNlZGJiNjUyMjYwMmI3NTdiZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDVjODU3YmI5ZTA5YjVlZmFkYWI1ZDY0NmYxNTY5ZjU4ZGViOTAxNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTZiNTRmZTY2ZDAyNWNlZTk3ODUyNjRiNWZmMDJkMDljZDBiOGI3YjkwY2E5
|
10
|
+
OGMzYWY2MWRhNDMwNTgyOWU3MGFkMmYxZGJmMTIwYTk4OTMwZjY4ZWE0MjI5
|
11
|
+
ZWY4ZWZhMTU2MDRiYTFmNzY3YjAzM2MyMzQ1YTZlZmM3ZDU5OTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDM0ZDZkOTU2YmY3NTA5YWY2NTI4Y2U3ZTQ4MGY5MzE4NmZlMDU1MWNiZWQx
|
14
|
+
NjBmZjA0ZmE1NWNmZmM2MTBjNTMxZjZkMzI0Nzg2ZTI2NzM0NTRkNTFjYTY1
|
15
|
+
M2UwYWUxOGU5MjY5NTM1NTNiZTAzMzAxNjM2ZGFhYzE3ZWJlMTQ=
|
@@ -29,16 +29,11 @@ module Cloud66
|
|
29
29
|
interfaces = interfaces_raw.split(',').select { |interface| interface =~ /^eth/ }
|
30
30
|
|
31
31
|
# don't have any ip address info
|
32
|
-
|
33
|
-
|
34
|
-
# address information
|
35
|
-
facter_command = "facter #{interfaces.map { |interface| "ipaddress_#{interface} ipaddress6_#{interface}" }.join(' ')}"
|
36
|
-
hash = parse_data(`#{facter_command}`)
|
37
|
-
|
38
|
-
# don't have any ip address info
|
39
|
-
raise 'no address information' if hash.empty?
|
32
|
+
return {} if interfaces.empty?
|
40
33
|
|
41
34
|
# return all interface information
|
35
|
+
facter_command = "facter #{interfaces.map { |interface| "ipaddress_#{interface} ipaddress6_#{interface}" }.join(' ')}"
|
36
|
+
hash = parse_data(`#{facter_command}`) rescue {}
|
42
37
|
return hash
|
43
38
|
end
|
44
39
|
end
|