specinfra 2.14.0 → 2.14.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: 7f078db8f071c4f138453bcdb382e170c3c6ea9f
4
- data.tar.gz: d0775ad341f116f542f01f10a7389b9354f6c952
3
+ metadata.gz: 40d138c8273c6ee22427a9a9bc7f75fcdecafab0
4
+ data.tar.gz: be3e270aa40466b77491d1ea2281013a01c1df47
5
5
  SHA512:
6
- metadata.gz: 5d1f097db93f0da16a44dc0644e1fccf9c6147c15c22cfd8964fe9b3bc7969b42b42f6b057d6fa7db72a590c7c1871317ed66765bdf7cb7cb710cc1087e2be76
7
- data.tar.gz: caca16b97fa5da5efdaad2a6702bf8058773df78d99c555718350ba04970a2d979842e6915be87d024b2d685fa5618e61fc9b2df9c27f407c83a938aa2a5ba2b
6
+ metadata.gz: 850f3b120522278c98362ea45b7bf61b45206f4a7cdd67f575219e6873353b150db8fa053f6804da5a108239ffd12ae1aec96bd7846ef0dd2a0044966295a8a1
7
+ data.tar.gz: f998486d2f1f7cdce24e9c622d75ff9de96cc58064c789d18265146260e3637c70d00b737c023e3ea723abe257b971d673e60d7fbbaf1cba91b64e3afe07b919
@@ -19,8 +19,12 @@ module Specinfra
19
19
  def [](key)
20
20
  @inventory[key.to_sym] ||= {}
21
21
  if @inventory[key.to_sym].empty?
22
- inventory_class = Specinfra::HostInventory.const_get(key.to_s.to_camel_case)
23
- @inventory[key.to_sym] = inventory_class.get
22
+ begin
23
+ inventory_class = Specinfra::HostInventory.const_get(key.to_s.to_camel_case)
24
+ @inventory[key.to_sym] = inventory_class.get
25
+ rescue
26
+ @inventory[key.to_sym] = nil
27
+ end
24
28
  end
25
29
  @inventory[key.to_sym]
26
30
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.14.0"
2
+ VERSION = "2.14.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.0
4
+ version: 2.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita