cisco_node_utils 2.0.0 → 2.0.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8500c855a9675c3c3ab5e581f06be1f67fb8074e
4
- data.tar.gz: 0abf3dc4d719fa5282db36717571113f9ffdb617
3
+ metadata.gz: 95592cbef138bff3078ec3c7213e07cb0296d021
4
+ data.tar.gz: '08bdb224bbeeda6e87dd2e6417e9e0339b05f33b'
5
5
  SHA512:
6
- metadata.gz: 7ed3776cba64a9cbd4276a0c8034222a9d761f76f4a8b226e2af50fe8d1b1ac0c30d8cb698d1de1132e90435e7c20f6d05ea63216a379bb4da1913e5a6ee72b9
7
- data.tar.gz: fc0a131d57d06626abdc777023b5a9637d15591997e8d88d05671f95a2efa8893b82c899fc4dc54e4f4407feac61befe7ba574a0c7438f3fe691cd1063605f60
6
+ metadata.gz: 8ab59911a36324d4f65628c29517aa67327099d8146dcc102dd902241b198f161d91f92b16a78c2f95cfbfcef2287efd26ee4d6f882634c6361b24c414b4b0f9
7
+ data.tar.gz: 866d3a9a26859df457f1771a85bd1309df72d436e1d8ebc5c62de0ad9d4a78df2c4c74566a0f82ca2430ed6e442ba6edd7ae77868958b04f5714a28599376aeb
data/.travis.yml CHANGED
@@ -12,3 +12,6 @@ before_install:
12
12
 
13
13
  script:
14
14
  - bundle exec rake
15
+ env:
16
+ global:
17
+ - "BUNDLE_FORCE_RUBY_PLATFORM=1"
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## [v2.0.1]
5
+
6
+ ### Issues Addressed
7
+ * `facter` may raise when `show install patches` in some environments
8
+
4
9
  ## [v2.0.0]
5
10
 
6
11
  ### New Cisco Resources
@@ -611,6 +616,7 @@ Cisco::Environment.add_env('default', env)
611
616
  [git-flow]: https://github.com/petervanderdoes/gitflow-avh
612
617
  [SimpleCov]: https://github.com/colszowka/simplecov
613
618
 
619
+ [v2.0.1]: https://github.com/cisco/cisco-network-node-utils/compare/v2.0.0...v2.0.1
614
620
  [v2.0.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.10.0...v2.0.0
615
621
  [v1.10.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.9.0...v1.10.0
616
622
  [v1.9.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.8.0...v1.9.0
@@ -35,10 +35,13 @@ module Cisco
35
35
  # Ex: { 'n3000-uk9.6.0.2.U1.1.CSCaa12345.bin' => 'inactive committed',
36
36
  # 'n3000-uk9.6.0.2.U1.1.CSCaa12346.bin' => 'active', }
37
37
  def self.packages
38
+ pkg_hsh = {}
38
39
  pkgs = config_get('images', 'packages')
39
40
  return {} if pkgs.nil?
40
- pkg_hsh = {}
41
41
  pkgs.each { |p| pkg_hsh[p[0]] = p[1].downcase }
42
+ rescue RuntimeError => e
43
+ raise unless e.message[/Invalid command/]
44
+ ensure
42
45
  pkg_hsh
43
46
  end
44
47
 
@@ -14,7 +14,7 @@
14
14
 
15
15
  # Container module for version number only.
16
16
  module CiscoNodeUtils
17
- VERSION = '2.0.0'
17
+ VERSION = '2.0.1'
18
18
  gem_version = Gem::Version.new(Gem::VERSION)
19
19
  min_gem_version = Gem::Version.new('2.1.0')
20
20
  fail 'Required rubygems version >= 2.1.0' if gem_version < min_gem_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cisco_node_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Gries
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2019-02-14 00:00:00.000000000 Z
18
+ date: 2019-04-09 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler
@@ -517,7 +517,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
517
517
  version: 2.1.0
518
518
  requirements: []
519
519
  rubyforge_project:
520
- rubygems_version: 2.5.2.1
520
+ rubygems_version: 2.5.2.3
521
521
  signing_key:
522
522
  specification_version: 4
523
523
  summary: Utilities for management of Cisco network nodes