oxidized 0.4.0 → 0.4.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: c8b4c0fb1595706703f57f1d8235cb0521186931
4
- data.tar.gz: ec43f93a8c891a3818d36daf7376650da1b4cc59
3
+ metadata.gz: fe0fdfc750565821617c3d13ebe990821f30aeec
4
+ data.tar.gz: 3030719bac957813ff5a56799cd76a95e7219789
5
5
  SHA512:
6
- metadata.gz: 31482aac75b5c83ea25f2e8d3c92ab86f09813caca3e68612a2a719bda2c142bacdf95e29094abf87b0c5f3fa49cfb8fc4a61cd6c4a968cc6f2e60e276282197
7
- data.tar.gz: 7a41f80ef435e574734ec761b32c5f86849d4cea2425cdc40694809e59a7087b3618ab174f92d37ef6ab86567d9cda029649c123829b84f5160600db90b9c0da
6
+ metadata.gz: adfc55ef26a4b72afc8e165f3c7e7b5ed4e138185125ed6601bd68cc2b9597f8549f0893be75627d3ecd9c793796d63a3b0985294c44dcff9aa11de5ab898ea3
7
+ data.tar.gz: 0eec4da96cd31c171c8507152a9fbe555a1833e46ead96c6085d16180d0b28a35f523eaf3d1c5153e222863a133918208049c5a23c8a954ab623731bbaa1cb4a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.4.1
2
+ - BUGFIX: handle missing output file (by @brandt)
3
+ - BUGFIX: fix passwordless enable on Arista EOS model (by @brandt)
4
+
1
5
  # 0.4.0
2
6
  - FEATURE: allow setting IP address in addition to name in source (SQL/CSV)
3
7
  - FEATURE: approximate how long it takes to get node from larger view than 1
@@ -28,8 +28,11 @@ class EOS < Oxidized::Model
28
28
  if vars :enable
29
29
  post_login do
30
30
  send "enable\n"
31
- expect /[pP]assword:\s?$/
32
- send vars(:enable) + "\n"
31
+ # Interpret enable: true as meaning we won't be prompted for a password
32
+ unless vars(:enable).is_a? TrueClass
33
+ expect /[pP]assword:\s?$/
34
+ send vars(:enable) + "\n"
35
+ end
33
36
  expect /^.+[#>]\s?$/
34
37
  end
35
38
  post_login 'terminal length 0'
@@ -38,4 +41,3 @@ class EOS < Oxidized::Model
38
41
  end
39
42
 
40
43
  end
41
-
@@ -33,6 +33,7 @@ class OxidizedFile < Output
33
33
  IO.readlines File.join(cfg_dir, node)
34
34
  else
35
35
  path = Dir.glob File.join(cfg_dir, '**', node) # fetch node in all groups
36
+ return nil if path[0].nil?
36
37
  open(path[0], 'r').readlines
37
38
  end
38
39
  end
data/oxidized.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'oxidized'
3
- s.version = '0.4.0'
3
+ s.version = '0.4.1'
4
4
  s.licenses = %w( Apache-2.0 )
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = [ 'Saku Ytti', 'Samer Abdel-Hafez' ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxidized
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-06 00:00:00.000000000 Z
12
+ date: 2015-03-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: asetus