ohai 15.7.4 → 15.8.0

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
  SHA256:
3
- metadata.gz: 3836d8ca7e3ae0f1beb6a8f4cd3ca01cc016b8803d01d7ff2aca39dd3622cdc1
4
- data.tar.gz: c09ced6abcc3ee95ddb69f35a08f34291bbc7b8b9f4e855fd809e88f7fae5eed
3
+ metadata.gz: 716670da7920418437e13a2cd3e598dfa627b94ed0373b899a2d6554ef5262bb
4
+ data.tar.gz: 76eaecc20366f9dfa672296112480dce19e14dd93ac6c1cc2fa225cb9e1229e2
5
5
  SHA512:
6
- metadata.gz: a8d390efe3e82e70e744249ef71e9087898c2dc1f6fcb76b08797d5079d8138a2c56fc11189ad785b6b8057dc1679ae4c2fa97318d6239a4dc4c286d01a483e5
7
- data.tar.gz: 5a513712ac8a5173b2a31ce39b80777f6e7c08bab22d5e8642c906c2cad1545ecc5d4ea1702c04624bfcbf8f0ebdbe92be73f7efd01ab1c2da671601cbf9508b
6
+ metadata.gz: fb171dd2f79329fe42912001b2c62ba983fab7ed6de65bc873b6682374d0dfe45b99fea215f4ce41568992967c2e74f46dc66b87e67141111d1007e614cbad59
7
+ data.tar.gz: e5994c2307a9c0640aae7a5325f6fe996d41fbd439017cca5783e132e72193cb0d0ada06b4e79b87bdd0c17891a5dc01efb42e3738b1d9a715b75cc1354b6e05
data/lib/ohai/config.rb CHANGED
@@ -39,7 +39,7 @@ module Ohai
39
39
  # causes all optional plugins to be run.
40
40
  default :run_all_plugins, false
41
41
  # optional plugins are the set of plugins that are marked optional but you wish to run.
42
- default :optional_plugins, []
42
+ default(:optional_plugins, []).writes_value { |arr| arr.map(&:to_sym) }
43
43
  default :shellout_timeout, 30
44
44
  end
45
45
  end
@@ -51,11 +51,11 @@ Ohai.plugin(:Openstack) do
51
51
  # dream host doesn't support windows so bail early if we're on windows
52
52
  return "openstack" if RUBY_PLATFORM =~ /mswin|mingw32|windows/
53
53
 
54
- if Etc.getpwnam("dhc-user")
54
+ if Etc::Passwd.entries.map(&:name).include?("dhc-user")
55
55
  "dreamhost"
56
+ else
57
+ "openstack"
56
58
  end
57
- rescue ArgumentError # getpwnam raises ArgumentError if the user is not found
58
- "openstack"
59
59
  end
60
60
 
61
61
  collect_data do
data/lib/ohai/version.rb CHANGED
@@ -18,5 +18,5 @@
18
18
 
19
19
  module Ohai
20
20
  OHAI_ROOT = File.expand_path(File.dirname(__FILE__))
21
- VERSION = "15.7.4".freeze
21
+ VERSION = "15.8.0".freeze
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohai
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.7.4
4
+ version: 15.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-21 00:00:00.000000000 Z
11
+ date: 2020-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: systemu