summaryrefslogtreecommitdiffstats
path: root/notify.pl
diff options
context:
space:
mode:
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);