cloud66_agent 1.2.5 → 1.2.6

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
- MTJlYzIxNDBmYzZkODcxZGJiMjI3ODIxZWU5NzE3NWUwMWQ4NzU4NA==
4
+ YjRhNGQ0MTAxN2IzYzhmZmMyMjE3MWNlZGJiNjUyMjYwMmI3NTdiZg==
5
5
  data.tar.gz: !binary |-
6
- NDc3N2Q2YzZiN2UyNjk2YTNlMzhkZmRjZWNjYzg4YzUzMmU1YTIxMw==
6
+ NDVjODU3YmI5ZTA5YjVlZmFkYWI1ZDY0NmYxNTY5ZjU4ZGViOTAxNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDY5ODMwNGJkZmYyZDYxNWIzNGJkOGE2MDhmYmFkMzNhN2MwM2E2Mzk0MmU2
10
- ZjdiMTFkMTBlMzUxZmM3YWJlMTM1ZWMyOGMyOGYzOTFjNzA5MjcyODU0YjYy
11
- ZDQ0NTY5YjFjN2EzZmY1NDY5MDZjZGQ1M2ViZjdkMGE1OWQyMTM=
9
+ OTZiNTRmZTY2ZDAyNWNlZTk3ODUyNjRiNWZmMDJkMDljZDBiOGI3YjkwY2E5
10
+ OGMzYWY2MWRhNDMwNTgyOWU3MGFkMmYxZGJmMTIwYTk4OTMwZjY4ZWE0MjI5
11
+ ZWY4ZWZhMTU2MDRiYTFmNzY3YjAzM2MyMzQ1YTZlZmM3ZDU5OTM=
12
12
  data.tar.gz: !binary |-
13
- ZmY0MjhkYzdhZjAxMWMwODExYTZiNDYwNzBkYzljNDk5M2UxOGNlMjJhM2Vk
14
- Njc2OTFkNzVlMWJlOTUzODc3ZGFkZjdjMTUwOTUwMjU0MTYxN2U3OWE3ZjAy
15
- OGExNTgzNDAwOTdhZjk5ZWZkNzIyODJmYmU5MTI3MDRhOWM0YTQ=
13
+ ZDM0ZDZkOTU2YmY3NTA5YWY2NTI4Y2U3ZTQ4MGY5MzE4NmZlMDU1MWNiZWQx
14
+ NjBmZjA0ZmE1NWNmZmM2MTBjNTMxZjZkMzI0Nzg2ZTI2NzM0NTRkNTFjYTY1
15
+ M2UwYWUxOGU5MjY5NTM1NTNiZTAzMzAxNjM2ZGFhYzE3ZWJlMTQ=
@@ -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, 5
16
+ MAJOR, MINOR, PATCH = 1, 2, 6
17
17
 
18
18
  #ie. PRERELEASE_MODIFIER = 'beta1' or nil
19
19
  PRERELEASE_MODIFIER = nil
@@ -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
- raise 'no address information' if interfaces.empty?
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
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.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloud 66