fluent-diagtool 1.0.4 → 1.0.5

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: f767598bf5753ebc1ce4834843a5612d606b0d4d4ac5be26c6538d8d0f7db8fb
4
- data.tar.gz: 93cef94976209e28812ab6ca5d466efcdc80c438222477e013d2bc365d8c8cae
3
+ metadata.gz: def49b2ce5033b380cf1770e8cc7ba47d3d7cbc39d97416d3286a23fef5739ea
4
+ data.tar.gz: 8644215ae75aa21cc183d30619de216746415039e9369d892567dc39ec4aca41
5
5
  SHA512:
6
- metadata.gz: 2b45ed8576c82a0d7f772c516127ac66d03d0a2d1051cb34a663e2062c3fb2e27ad8160acba33bf9c7995485d403ae135fc496984a55b05a772d61273ce1aca0
7
- data.tar.gz: 2af458d2e1202db45ebe0ddf6e6ab4e75dec2e9f53b995712ce20836a372af86588ddc5e7bb705c947a12c50673c35b8378f55ebb5c0615625c30f789112de95
6
+ metadata.gz: 95d719ede780fb2c02cc9d70ce9c4286ea230ee426fcc2804768327b12557c70ad435c96c674251901e8e9c601c8de55aeb15e54aa6cc6acd08ceb31e0a744eb
7
+ data.tar.gz: f1ca7c821fc7f2ee5fb34ba4470d4142d815acb9a4778045baae0c6f70fb414e0532bf2d316f0bb290983855277525f2f5be1dc1de32cc832d46f90b592a1cdc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-diagtool (1.0.4)
4
+ fluent-diagtool (1.0.5)
5
5
  fileutils
6
6
  json
7
7
 
@@ -207,16 +207,18 @@ module Diagtool
207
207
  ###
208
208
  diaglogger_info("[Collect] Collecting sysctl information...")
209
209
  sysctl = c.collect_cmd_output("sysctl -a")
210
- diaglogger_info("[Collect] sysctl information is stored in #{sysctl}")
211
-
212
- diaglogger_info("[Valid] Validating sysctl information...")
213
- ret, sysctl = v.valid_sysctl(sysctl)
214
- list = sysctl.keys
215
- list.each do |k|
216
- if sysctl[k]['result'] == 'correct'
217
- diaglogger_info("[Valid] Sysctl: #{k} => #{sysctl[k]['value']} is correct (recommendation is #{sysctl[k]['recommend']})")
218
- elsif sysctl[k]['result'] == 'incorrect'
219
- diaglogger_warn("[Valid] Sysctl: #{k} => #{sysctl[k]['value']} is incorrect (recommendation is #{sysctl[k]['recommend']})")
210
+ if sysctl
211
+ diaglogger_info("[Collect] sysctl information is stored in #{sysctl}")
212
+
213
+ diaglogger_info("[Valid] Validating sysctl information...")
214
+ ret, sysctl = v.valid_sysctl(sysctl)
215
+ list = sysctl.keys
216
+ list.each do |k|
217
+ if sysctl[k]['result'] == 'correct'
218
+ diaglogger_info("[Valid] Sysctl: #{k} => #{sysctl[k]['value']} is correct (recommendation is #{sysctl[k]['recommend']})")
219
+ elsif sysctl[k]['result'] == 'incorrect'
220
+ diaglogger_warn("[Valid] Sysctl: #{k} => #{sysctl[k]['value']} is incorrect (recommendation is #{sysctl[k]['recommend']})")
221
+ end
220
222
  end
221
223
  end
222
224
 
@@ -1,5 +1,5 @@
1
1
  module Fluent
2
2
  module Diagtool
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-diagtool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - kubotat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-01 00:00:00.000000000 Z
11
+ date: 2024-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fileutils
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.4.19
90
+ rubygems_version: 3.5.3
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Diagnostic Tool for Fluentd