File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Changed
11
+ - Fixed frozen_string_literal issues
12
+
10
13
## [ 2.0.1] - 2020-03-06
11
14
12
15
### Changed
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env ruby
2
- # frozen_string_literal: true
2
+ # frozen_string_literal: false
3
3
4
4
#
5
5
# check-haproxy.rb
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env ruby
2
- # frozen_string_literal: true
2
+ # frozen_string_literal: false
3
3
4
4
#
5
5
# metrics-haproxy.rb
@@ -39,10 +39,10 @@ class HAProxyMetrics < Sensu::Plugin::Metric::CLI::Graphite
39
39
# Check http://cbonte.github.io/haproxy-dconv/1.7/management.html#9.1 for
40
40
# haproxy stats CSV format.
41
41
42
- TYPE_FRONTEND = '0'
43
- TYPE_BACKEND = '1'
44
- TYPE_SERVER = '2'
45
- TYPE_LISTENER = '3'
42
+ TYPE_FRONTEND = '0' . freeze
43
+ TYPE_BACKEND = '1' . freeze
44
+ TYPE_SERVER = '2' . freeze
45
+ TYPE_LISTENER = '3' . freeze
46
46
# All fields are listed here for ease of long term maintenance.
47
47
# Format: field_index => %w(haproxy-name friendly-name)
48
48
CSV_FIELDS = {
You can’t perform that action at this time.
0 commit comments