Commit d1a12ad1 authored by Leigh B Stoller's avatar Leigh B Stoller

If updatekeys fails, stop trying.

parent 8e7d7eec
......@@ -112,6 +112,7 @@ use Node;
use libtestbed;
use emutil;
use libEmulab;
use GeniResponse;
use APT_Instance;
use POSIX qw(strftime ceil);
......@@ -501,7 +502,9 @@ sub PushUpdates()
$genislice->UnLock();
system("$SUDO -u $PROTOUSER $MANAGEINSTANCE updatekeys $uuid");
if ($?) {
$instance->Update({"needupdate" => 1});
if ($? >> 8 != GENIRESPONSE_REFUSED) {
$instance->Update({"needupdate" => 1});
}
}
skip:
$genislice->Flush();
......
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