summaryrefslogtreecommitdiff
path: root/lorrycontroller/givemejob.py
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller/givemejob.py')
-rw-r--r--lorrycontroller/givemejob.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lorrycontroller/givemejob.py b/lorrycontroller/givemejob.py
index 43abcc8..067f3c3 100644
--- a/lorrycontroller/givemejob.py
+++ b/lorrycontroller/givemejob.py
@@ -73,7 +73,7 @@ class GiveMeJob(lorrycontroller.LorryControllerRoute):
# it failed because the repository already existed, and
# ignore the failure (but log message).
- local = lorrycontroller.GitanoCommand('localhost', 'ssh', None, None)
+ local = lorrycontroller.LocalTroveGitanoCommand()
try:
local.create(lorry_info['path'])
except lorrycontroller.GitanoCommandFailure as e:
@@ -89,8 +89,8 @@ class GiveMeJob(lorrycontroller.LorryControllerRoute):
assert lorry_info['from_trovehost']
assert lorry_info['from_path']
- remote = self.new_gitano_command(statedb, lorry_info['from_trovehost'])
- local = lorrycontroller.GitanoCommand('localhost', 'ssh', None, None)
+ remote = lorrycontroller.new_gitano_command(statedb, lorry_info['from_trovehost'])
+ local = lorrycontroller.LocalTroveGitanoCommand()
try:
remote_config = remote.get_gitano_config(lorry_info['from_path'])