summaryrefslogtreecommitdiffstats
path: root/notify.pl
diff options
context:
space:
mode:
authormischa <mischa@rx.high5.nl>2021-07-05 16:27:16 +0200
committermischa <mischa@rx.high5.nl>2021-07-05 16:27:16 +0200
commit35bfa8a28d16e276045fa583d5064eae849883c0 (patch)
treef55fa5902db3512b352e31c93ff97d3318c97e30 /notify.pl
parenta3ced2559825268028c1672578da48a84c612983 (diff)
subscription logic changed for notify.pl
Diffstat (limited to 'notify.pl')
-rwxr-xr-xnotify.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/notify.pl b/notify.pl
index 6a67111..fa0a8c7 100755
--- a/notify.pl
+++ b/notify.pl
@@ -175,7 +175,7 @@ if ($function =~ /notify/) {
if (defined $vms{$vm_name}{'subscription'} and $vms{$vm_name}{'subscription'} =~ /yes/) { delete $vms{$vm_name}; next; }
}
if ($function =~ /subscription/) {
- if (defined $vms{$vm_name}{'subscription'} and $vms{$vm_name}{'subscription'} eq "") { delete $vms{$vm_name}; next; }
+ if (!defined $vms{$vm_name}{'subscription'} or $vms{$vm_name}{'subscription'} eq "" or $vms{$vm_name}{'subscription'} =~ /no/) { delete $vms{$vm_name}; next; }
}
}
mailout(\%conf, \%vms);