Commit 751b48a5 authored by Leigh B Stoller's avatar Leigh B Stoller

Send a geni sliverstatus event whenever we see a local node status change

event.
parent 1a3c6c94
......@@ -194,6 +194,7 @@ sub callback($$$)
if (!defined($objtype) ||
($objtype ne TBDB_TBEVENT_NODESTATE() &&
$objtype ne TBDB_TBEVENT_NODESTARTSTATUS() &&
$objtype ne TBDB_TBEVENT_NODESTATUS() &&
$objtype ne TBDB_TBEVENT_NODEACCOUNTS()));
my $node_id = event_notification_get_objname($handle, $notification);
......@@ -233,6 +234,7 @@ sub callback($$$)
# and forward directly (above).
#
if ($objtype eq TBDB_TBEVENT_NODESTATE() ||
$objtype eq TBDB_TBEVENT_NODESTATUS() ||
$objtype eq TBDB_TBEVENT_NODEACCOUNTS()) {
my $oldstatus = $sliver->status();
my $newstatus;
......
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