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 +4 -4
- data/lib/ohai/config.rb +1 -1
- data/lib/ohai/plugins/openstack.rb +3 -3
- data/lib/ohai/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 716670da7920418437e13a2cd3e598dfa627b94ed0373b899a2d6554ef5262bb
|
4
|
+
data.tar.gz: 76eaecc20366f9dfa672296112480dce19e14dd93ac6c1cc2fa225cb9e1229e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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
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.
|
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-
|
11
|
+
date: 2020-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: systemu
|