Skip to content
Snippets Groups Projects
Commit 8d0df009 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Fix ssh_known_hosts condition

parent 5650cb6e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment