Commit c52a4ff5 authored by Leigh Stoller's avatar Leigh Stoller

Import Geni libs only if experiment has geni nodes, at least until

geni code ready for primetime.
parent 89cfe614
......@@ -62,7 +62,6 @@ use libtestbed;
use libtblog;
use Experiment;
use Node;
use GeniEmulab;
# un-taint path
$ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin';
......@@ -149,6 +148,12 @@ if (!defined($experiment)) {
tbdie("Could not locate object for experiment $pid/$eid");
# XXX Until ProtoGeni stuff more ready for primetime.
if ($experiment->HasGeniNodes()) {
require GeniEmulab;
import GeniEmulab;
# Verify permission to muck with this experiment. Note that this script
# is run as root from the plab monitor daemon.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment