summaryrefslogtreecommitdiff
path: root/scripts/release-test
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/release-test')
-rwxr-xr-xscripts/release-test2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/release-test b/scripts/release-test
index b2bca58..a161172 100755
--- a/scripts/release-test
+++ b/scripts/release-test
@@ -185,6 +185,8 @@ class Deployment(object):
@staticmethod
def _ssh_host_key_exists(hostname):
"""Check if an ssh host key exists in known_hosts"""
+ if not os.path.exists('/root/.ssh/known_hosts'):
+ return False
with open('/root/.ssh/known_hosts', 'r') as known_hosts:
return any(line.startswith(hostname) for line in known_hosts)