aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-05-29 15:13:48 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2018-05-29 15:13:48 +0200
commitbd3f71c4469ce173a07f44ecada85025ff761767 (patch)
tree6ccef32b0e65efa42cc2206df205bc918cb4ff16
parentf28d8380444fb74bd6bdf7c56cf23f59e6a8256e (diff)
downloadrumba-bd3f71c4469ce173a07f44ecada85025ff761767.tar.gz
rumba-bd3f71c4469ce173a07f44ecada85025ff761767.zip
testbeds: Allow locally fetching files
This simply allows to locally fetch a file, which is handy for debugging purposes, for instance obtaining flow stats from the Ouroboros prototype.
-rw-r--r--rumba/executors/local.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rumba/executors/local.py b/rumba/executors/local.py
index 455b05c..d0ebc56 100644
--- a/rumba/executors/local.py
+++ b/rumba/executors/local.py
@@ -27,6 +27,7 @@
from rumba import model as mod
import subprocess
+from shutil import copy
from rumba import log
@@ -46,8 +47,7 @@ class LocalExecutor(mod.Executor):
raise
def fetch_file(self, node, path, destination, as_root=False):
- logger.error("Fetch_file not supported for local testbed")
- raise
+ copy(path, destination)
def copy_file(self, node, path, destination):
logger.error("Copy_file not supported for local testbed")