summaryrefslogtreecommitdiff
path: root/scripts/release-test
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-10-27 09:10:48 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2014-10-27 09:10:48 +0000
commit19d3ce76b9f785ee34457482415dee9bc4aaf9d2 (patch)
treee2525d92184b752d7bdd9e87a862b11a848b850f /scripts/release-test
parent6b9c0c1ba8b23741349c535adf426a9e8a41d3c1 (diff)
parentb3a7c84e3dfb3385b7c5f5cc104ab2f6be278b91 (diff)
downloaddefinitions-19d3ce76b9f785ee34457482415dee9bc4aaf9d2.tar.gz
Merge branch 'baserock/adamcoldrick/mason-openstack-rebased'
Reviewed-By: Richard Maw <richard.maw@codethink.co.uk> Reviewed-By: Sam Thursfield <sam.thursfield@codethink.co.uk>
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 b2bca58d..a1611721 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)