cloud66_agent 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/cloud66_agent/utils/version.rb +1 -1
- data/lib/cloud66_agent/utils/vital_signs.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDEwYjEzNzA1N2U5YWZiOWY5Zjk5OGYyMzJlOWJkYzc2YTk0MTAwMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGNiMjFhMzljYWMxZjZkNmIxMjY5NmQ2NTYwMmU4NGEzNjNlYjVlNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODcxY2E5YWFjM2NhYmExNzNkNzJkNGVlZjg4ZDY3MjQ1NGQ3MjNlMmU3OGY4
|
10
|
+
OTgxNzJlYWIxNjI0YmU0OWUyNjU0ODNkYzQxOTk0ZWQ3YWMyY2FhOGU4ZDQ1
|
11
|
+
NGY5NTVhOGE0MzY5OWJlODJiMTg1YzBhM2U3MmE0MDNjNzE5NGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzNhNDJlODJkODk1N2FkYWU2ZGE4ZTQzYWYxNTdmYzdmM2UyM2UzZTIzMzM3
|
14
|
+
ODJmMWRlZDg2ZTAzYWE4MTU5ODQ3MzY3N2ZmNDc5NWFhNzk2ZjdhN2E3NjFh
|
15
|
+
NTI1YzhkOTE4YmI0Yzc3YjFmYTY3NzM3MjhkNWNhNTM1OGZlNjQ=
|
@@ -38,7 +38,7 @@ module Cloud66
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
def self.is_aws?
|
41
|
+
def self.is_aws?
|
42
42
|
# 6 seconds to find out if this is a AWS image or not!
|
43
43
|
instance = `/usr/bin/curl --connect-timeout 6 -s http://169.254.169.254/latest/meta-data/instance-id` rescue nil
|
44
44
|
return false if instance.nil? || instance.empty?
|
@@ -50,6 +50,8 @@ module Cloud66
|
|
50
50
|
|
51
51
|
# it is aws
|
52
52
|
return true
|
53
|
+
rescue => exc
|
54
|
+
return false
|
53
55
|
end
|
54
56
|
|
55
57
|
def self.is_gc?
|
@@ -60,6 +62,8 @@ module Cloud66
|
|
60
62
|
|
61
63
|
# it is google cloud
|
62
64
|
return true
|
65
|
+
rescue => exc
|
66
|
+
return false
|
63
67
|
end
|
64
68
|
|
65
69
|
private
|