From 447d4e9764e4699a5102ce1bd7e97f03584c44e3 Mon Sep 17 00:00:00 2001 From: John Bellone Date: Tue, 17 May 2016 22:14:22 -0400 Subject: [PATCH] Fix failure due to windows? helper not existing. This only exists when chef-sugar is in the run-list. Its safer just to use the node.platform? method. --- libraries/consul_config.rb | 4 ++-- metadata.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/consul_config.rb b/libraries/consul_config.rb index e04b6676..7b82f2f6 100644 --- a/libraries/consul_config.rb +++ b/libraries/consul_config.rb @@ -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' @@ -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' diff --git a/metadata.rb b/metadata.rb index 17ceef38..5a49e326 100644 --- a/metadata.rb +++ b/metadata.rb @@ -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.'