diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-10-03 11:49:58 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-10-03 11:49:58 +0100 |
commit | e19f1e813de714c17d148b0a7440650ef1b8bf3e (patch) | |
tree | 2928a7d301f4748ded33b2c90131ba8b5fc3fcbd /lorrycontroller | |
parent | 8c149c13fad6247e0786d95213accfe2e7b829e1 (diff) | |
download | lorry-controller-e19f1e813de714c17d148b0a7440650ef1b8bf3e.tar.gz |
Ensure trove access is batched and non-checked
Diffstat (limited to 'lorrycontroller')
-rw-r--r-- | lorrycontroller/confparser.py | 3 |
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) |