diff --git a/notify.pl b/notify.pl index 033605b..872543a 100755 --- a/notify.pl +++ b/notify.pl @@ -200,6 +200,7 @@ if ($function =~ /notify/) { my @stopped_vms = qx(vmctl show | grep stopped | awk '{print \$9}'); for my $vm_name (sort keys %vms) { if (!grep(/$vm_name/, @stopped_vms)) { delete $vms{$vm_name}; next; } + if ($vms{$vm_name}{'donated'} =~ /expire/) { delete $vms{$vm_name}; next; } } mailout(\%conf, \%vms); } else {