Skip to content

Commit a617a9e

Browse files
Merge pull request #628 from cisco/release_2.0.1
Release 2.0.1
2 parents 9d1d2d7 + 066f9c5 commit a617a9e

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ before_install:
1212

1313
script:
1414
- bundle exec rake
15+
env:
16+
global:
17+
- "BUNDLE_FORCE_RUBY_PLATFORM=1"

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
## [v2.0.1]
5+
6+
### Issues Addressed
7+
* `facter` may raise when `show install patches` in some environments
8+
49
## [v2.0.0]
510

611
### New Cisco Resources
@@ -611,6 +616,7 @@ Cisco::Environment.add_env('default', env)
611616
[git-flow]: https://github.com/petervanderdoes/gitflow-avh
612617
[SimpleCov]: https://github.com/colszowka/simplecov
613618

619+
[v2.0.1]: https://github.com/cisco/cisco-network-node-utils/compare/v2.0.0...v2.0.1
614620
[v2.0.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.10.0...v2.0.0
615621
[v1.10.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.9.0...v1.10.0
616622
[v1.9.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.8.0...v1.9.0

lib/cisco_node_utils/platform.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ def self.system_image
3535
# Ex: { 'n3000-uk9.6.0.2.U1.1.CSCaa12345.bin' => 'inactive committed',
3636
# 'n3000-uk9.6.0.2.U1.1.CSCaa12346.bin' => 'active', }
3737
def self.packages
38+
pkg_hsh = {}
3839
pkgs = config_get('images', 'packages')
3940
return {} if pkgs.nil?
40-
pkg_hsh = {}
4141
pkgs.each { |p| pkg_hsh[p[0]] = p[1].downcase }
42+
rescue RuntimeError => e
43+
raise unless e.message[/Invalid command/]
44+
ensure
4245
pkg_hsh
4346
end
4447

lib/cisco_node_utils/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Container module for version number only.
1616
module CiscoNodeUtils
17-
VERSION = '2.0.0'
17+
VERSION = '2.0.1'
1818
gem_version = Gem::Version.new(Gem::VERSION)
1919
min_gem_version = Gem::Version.new('2.1.0')
2020
fail 'Required rubygems version >= 2.1.0' if gem_version < min_gem_version

0 commit comments

Comments
 (0)