summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-25 18:13:12 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-25 18:13:12 +0000
commit0310e9f98a4ca5df7878590bf364aec0d444c7e1 (patch)
tree1641de597fadd83f6e2331e86a42e6da50baa71e
parent165d40d172f82b4e8a74cdc2f6179b5c677c1948 (diff)
downloadlorry-controller-0310e9f98a4ca5df7878590bf364aec0d444c7e1.tar.gz
Fixes to give-me-job
-rw-r--r--lorrycontroller/givemejob.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lorrycontroller/givemejob.py b/lorrycontroller/givemejob.py
index 55f9821..5e0fbb7 100644
--- a/lorrycontroller/givemejob.py
+++ b/lorrycontroller/givemejob.py
@@ -14,6 +14,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+import collections
import logging
import time
@@ -105,7 +106,7 @@ class GiveMeJob(lorrycontroller.LorryControllerRoute):
bottle.abort(500)
def get_gitano_config(self, trovehost, repo_path):
- exit, stdout, stderr = cliapp.runcmd(
+ exit, stdout, stderr = cliapp.runcmd_unchecked(
['ssh', 'git@%s' % trovehost,
'config', cliapp.shell_quote(repo_path), 'show'])
@@ -124,7 +125,7 @@ class GiveMeJob(lorrycontroller.LorryControllerRoute):
return result
def set_gitano_config(self, trovehost, repo_path, key, value):
- exit, stdout, stderr = cliapp.runcmd(
+ exit, stdout, stderr = cliapp.runcmd_unchecked(
['ssh', 'git@%s' % trovehost,
'config', cliapp.shell_quote(repo_path),
'set', cliapp.shell_quote(key), cliapp.shell_quote(value)])