summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-03 11:49:58 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-03 11:49:58 +0100
commite19f1e813de714c17d148b0a7440650ef1b8bf3e (patch)
tree2928a7d301f4748ded33b2c90131ba8b5fc3fcbd
parent8c149c13fad6247e0786d95213accfe2e7b829e1 (diff)
downloadlorry-controller-e19f1e813de714c17d148b0a7440650ef1b8bf3e.tar.gz
Ensure trove access is batched and non-checked
-rw-r--r--lorrycontroller/confparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lorrycontroller/confparser.py b/lorrycontroller/confparser.py
index a5f1e3e..8179a61 100644
--- a/lorrycontroller/confparser.py
+++ b/lorrycontroller/confparser.py
@@ -183,7 +183,8 @@ class LorryControllerConfig(object):
trove['uuid']))
# 1. Ensure that if we need to 'ls' the trove, we do it
now = time.time()
- listcmdargs = ["ssh", "git@" + trove['trovehost'], "ls"]
+ listcmdargs = ["ssh", "-oStrictHostKeyChecking=no",
+ "-oBatchMode=yes", "git@" + trove['trovehost'], "ls"]
state['next-ls'] = state.get('next-ls', now - 1)
if state['next-ls'] < now:
exit, out, err = self.app.maybe_runcmd(listcmdargs)