Skip to content

Commit

Permalink
Fix failure due to windows? helper not existing.
Browse files Browse the repository at this point in the history
This only exists when chef-sugar is in the run-list. Its safer just to
use the node.platform? method.
  • Loading branch information
John Bellone committed May 18, 2016
1 parent 7a03bb1 commit 447d4e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libraries/consul_config.rb
Expand Up @@ -111,7 +111,7 @@ def tls?
notifying_block do
directory ::File.dirname(new_resource.path) do
recursive true
unless windows?
unless node.platform?('windows')
owner new_resource.owner
group new_resource.group
mode '0755'
Expand All @@ -120,7 +120,7 @@ def tls?
end

file new_resource.path do
unless windows?
unless node.platform?('windows')
owner new_resource.owner
group new_resource.group
mode '0640'
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Expand Up @@ -4,7 +4,7 @@
license 'Apache 2.0'
description 'Application cookbook which installs and configures Consul.'
long_description 'Application cookbook which installs and configures Consul.'
version '2.1.1'
version '2.1.2'

recipe 'consul::default', 'Installs and configures the Consul service.'
recipe 'consul::client_gem', 'Installs the Consul Ruby client as a gem.'
Expand Down

0 comments on commit 447d4e9

Please sign in to comment.