Commit b21ec0e4 authored by David Johnson's avatar David Johnson
Browse files

If trying a plab vnode, don't continue if we can't get the associated

username out of the db.  Don't want to try slogin as root from a script.
parent 19c33c7a
......@@ -95,6 +95,11 @@ else {
if ($node->isvirtnode()) {
if ($node->isplabdslice()) {
TBPlabNodeUsername($hostname, \$user);
# if the node didn't exist in the db, we don't want to just
# try logging in as root!
if (!defined($user) || "$user" eq "0") {
$hostname = $node->phys_nodeid();
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