diff --git a/recipes/default.rb b/recipes/default.rb index adb1dde8e5193110c70afe181f75196bf6ba2615..f0c12e71349c4bdf61475ed691e95c1adf608177 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