Commit 109d5e8e authored by Leigh Stoller's avatar Leigh Stoller

Bypass role=testnode check when using -f option.

parent e9408662
#!/usr/bin/perl -w
#
# Copyright (c) 2004-2012 University of Utah and the Flux Group.
# Copyright (c) 2004-2013 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -79,7 +79,7 @@ if ($result->num_rows() != 1) {
die "Node $node does not exist!\n";
}
my ($role) = $result->fetchrow_array();
if ($role ne "testnode") {
if ($role ne "testnode" && ! defined($options{"f"})) {
die "Node $node is not a testnode!\n";
}
......
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