aboutsummaryrefslogtreecommitdiff
path: root/examples/jfed-rlite.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/jfed-rlite.py')
-rwxr-xr-xexamples/jfed-rlite.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/jfed-rlite.py b/examples/jfed-rlite.py
index ce058eb..d80b56e 100755
--- a/examples/jfed-rlite.py
+++ b/examples/jfed-rlite.py
@@ -46,6 +46,9 @@ tb = jfed.Testbed(exp_name = args.expname,
exp = rlite.Experiment(tb, nodes = [a, b])
-exp.swap_in()
-exp.install_prototype()
-exp.bootstrap_prototype()
+try:
+ exp.swap_in()
+ exp.install_prototype()
+ exp.bootstrap_prototype()
+finally:
+ exp.swap_out()