aws-eni 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ac27064fd3f98202092c5328017e064dadf2aeb
4
- data.tar.gz: 524ff66d382280f6a2e453eb26c43e8380b311fa
3
+ metadata.gz: 68b27be2888889b79b25cf82c4c1deed40d5a2a7
4
+ data.tar.gz: e5d27764786824060075bf2afebe15e32a99ed7b
5
5
  SHA512:
6
- metadata.gz: 0f3f68fde457610edc205c8eabfd18fe87ee81c40da35e42ee5bc1dd034de94e05e8d0492e4f59f360eabcbb7f1012cd781f4e4295d1ce4b257a92a92610983a
7
- data.tar.gz: f869c4491ca2989a2dfb7a4fde3b4096eefe9fb85385d0fbec7f93f363ed84aa3526ce6e06d3c70df8c75aa4c387dd2dd82fe8c6429b1d342bf8e6f4ba71b0bd
6
+ metadata.gz: 70617c4f309714d61f46bde0316701748d011c522cbaef8a5dd924d74bc0c94c9bdc7e54e7d16a1180a2f538d8e3c8e18163e624aa4db4d5366df1346dfddff4
7
+ data.tar.gz: 8f06e423e4ba8dbfc7698c65e27f63c8065412fdd2a0768c0bc1da42f6455c48861b8e9b9d186980da4e043601ec6355d20afde7d3d08ab97d712e714b4bf75e
@@ -215,9 +215,12 @@ module Aws
215
215
 
216
216
  # Return an array of configured ip addresses (primary + secondary)
217
217
  def local_ips
218
- list = cmd("addr show dev #{name} primary", sudo: false) +
219
- cmd("addr show dev #{name} secondary", sudo: false)
218
+ list = cmd("addr show dev #{name} primary", sudo: false, errors: true) +
219
+ cmd("addr show dev #{name} secondary", sudo: false, errors: true)
220
220
  list.lines.grep(/inet ([0-9\.]+)\/.* #{name}/i){ $1 }
221
+ rescue
222
+ raise Errors::UnknownInterface, "Interface #{name} not found on this machine" unless exists?
223
+ raise
221
224
  end
222
225
 
223
226
  # Return an array of ip addresses found in our instance metadata
@@ -1,5 +1,5 @@
1
1
  module Aws
2
2
  module ENI
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-eni
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Greiling
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-09 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli