Skip to content

Commit

Permalink
Ruby 1.8 compatibility (Agent-side)
Browse files Browse the repository at this point in the history
  • Loading branch information
sathieu committed Jan 16, 2018
1 parent b5415bb commit c766e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Lint/LiteralInInterpolation:

Style/HashSyntax:
Enabled: True
EnforcedStyle: 'hash_rockets'

Style/RedundantReturn:
Enabled: True
Expand Down
2 changes: 1 addition & 1 deletion lib/facter/alert_manager_running.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'puppet'

service = Puppet::Type.type(:service).new(name: 'alert_manager')
service = Puppet::Type.type(:service).new(:name => 'alert_manager')

Facter.add('prometheus_alert_manager_running') do
setcode do
Expand Down

0 comments on commit c766e86

Please sign in to comment.