Commit 36cac53b authored by Victor Nikulshin's avatar Victor Nikulshin

Prepend SSH keyfile to settings in fab_exists() helper

This helper will try to check file on a remote server. To do this, it needs to
have a configured key to connect via SSH.
parent c3aaf216
Pipeline #1738 passed with stages
in 1 minute and 15 seconds
......@@ -97,7 +97,8 @@ def fab_exists(role, directory):
if role == "local":
return path.exists(directory)
else:
return exists(directory)
with settings(key_filename=fab_ssh_key()):
return exists(directory)
def fab_add_to_hosts(ip, site_hostname):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment