From 8d0df0099d1b0c15f921b93a4f94355dd4d4ec31 Mon Sep 17 00:00:00 2001 From: Stefan Galinski <stefan@sgalinski.de> Date: Tue, 23 Aug 2016 17:48:22 +0200 Subject: [PATCH] [BUGFIX] Fix ssh_known_hosts condition --- recipes/default.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes/default.rb b/recipes/default.rb index adb1dde..f0c12e7 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -343,9 +343,10 @@ end node['typo3_site']['sync_directories'].each do |sync_data| # don't fix this. This must look exactly like this! Foodcritic is not correct here! - ssh_known_hosts_entry sync_data['hostname'] do - port sync_data['port'] - only_if { sync_data['hostname'] } + if sync_data['hostname'] + ssh_known_hosts_entry sync_data['hostname'] do + port sync_data['port'] + end end bash "Synchronize #{sync_data['local']}" do -- GitLab