Skip to content

Commit

Permalink
cook style tests failing
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham Davison committed Dec 15, 2016
1 parent 53b54bf commit 6e989cc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
'rpc' => 8400,
'serf_lan' => 8301,
'serf_wan' => 8302,
'server' => 8300
'server' => 8300,
}

default['consul']['diplomat_version'] = nil
Expand All @@ -41,5 +41,5 @@
'AppStderr' => join_path(config_prefix_path, 'error.log'),
'AppRotateFiles' => 1,
'AppRotateOnline' => 1,
'AppRotateBytes' => 20_000_000
'AppRotateBytes' => 20_000_000,
}
2 changes: 1 addition & 1 deletion libraries/consul_installation_webui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def self.default_inversion_options(node, resource)
def action_create
archive_url = options[:archive_url] % {
version: options[:version],
basename: options[:archive_basename]
basename: options[:archive_basename],
}

notifying_block do
Expand Down
2 changes: 1 addition & 1 deletion libraries/consul_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def command
def default_environment
{
'GOMAXPROCS' => [node['cpu']['total'], 2].max.to_s,
'PATH' => '/usr/local/bin:/usr/bin:/bin'
'PATH' => '/usr/local/bin:/usr/bin:/bin',
}
end
end
Expand Down
2 changes: 1 addition & 1 deletion libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def nssm_service_installed?
# 1 is command not found
# 3 is service not found
exit_code = shell_out!(%{"#{nssm_exe}" status consul}, returns: [0, 1, 3]).exitstatus
exit_code == 0 ? true : false
exit_code.zero? ? true : false
end

def nssm_service_status?(expected_status)
Expand Down

0 comments on commit 6e989cc

Please sign in to comment.