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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjRhNGQ0MTAxN2IzYzhmZmMyMjE3MWNlZGJiNjUyMjYwMmI3NTdiZg==
4
+ ZDEwYjEzNzA1N2U5YWZiOWY5Zjk5OGYyMzJlOWJkYzc2YTk0MTAwMg==
5
5
  data.tar.gz: !binary |-
6
- NDVjODU3YmI5ZTA5YjVlZmFkYWI1ZDY0NmYxNTY5ZjU4ZGViOTAxNA==
6
+ MGNiMjFhMzljYWMxZjZkNmIxMjY5NmQ2NTYwMmU4NGEzNjNlYjVlNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTZiNTRmZTY2ZDAyNWNlZTk3ODUyNjRiNWZmMDJkMDljZDBiOGI3YjkwY2E5
10
- OGMzYWY2MWRhNDMwNTgyOWU3MGFkMmYxZGJmMTIwYTk4OTMwZjY4ZWE0MjI5
11
- ZWY4ZWZhMTU2MDRiYTFmNzY3YjAzM2MyMzQ1YTZlZmM3ZDU5OTM=
9
+ ODcxY2E5YWFjM2NhYmExNzNkNzJkNGVlZjg4ZDY3MjQ1NGQ3MjNlMmU3OGY4
10
+ OTgxNzJlYWIxNjI0YmU0OWUyNjU0ODNkYzQxOTk0ZWQ3YWMyY2FhOGU4ZDQ1
11
+ NGY5NTVhOGE0MzY5OWJlODJiMTg1YzBhM2U3MmE0MDNjNzE5NGM=
12
12
  data.tar.gz: !binary |-
13
- ZDM0ZDZkOTU2YmY3NTA5YWY2NTI4Y2U3ZTQ4MGY5MzE4NmZlMDU1MWNiZWQx
14
- NjBmZjA0ZmE1NWNmZmM2MTBjNTMxZjZkMzI0Nzg2ZTI2NzM0NTRkNTFjYTY1
15
- M2UwYWUxOGU5MjY5NTM1NTNiZTAzMzAxNjM2ZGFhYzE3ZWJlMTQ=
13
+ MzNhNDJlODJkODk1N2FkYWU2ZGE4ZTQzYWYxNTdmYzdmM2UyM2UzZTIzMzM3
14
+ ODJmMWRlZDg2ZTAzYWE4MTU5ODQ3MzY3N2ZmNDc5NWFhNzk2ZjdhN2E3NjFh
15
+ NTI1YzhkOTE4YmI0Yzc3YjFmYTY3NzM3MjhkNWNhNTM1OGZlNjQ=
@@ -13,7 +13,7 @@ module Cloud66
13
13
  # Defines the minor version
14
14
  # PATCH:
15
15
  # Defines the patch version
16
- MAJOR, MINOR, PATCH = 1, 2, 6
16
+ MAJOR, MINOR, PATCH = 1, 2, 7
17
17
 
18
18
  #ie. PRERELEASE_MODIFIER = 'beta1' or nil
19
19
  PRERELEASE_MODIFIER = nil
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud66_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloud 66