5
0
mirror of git://git.proxmox.com/git/pve-firewall.git synced 2025-01-09 01:18:04 +03:00

Revert "rules: verify referenced security group exists"

This could never work, we do not have the groups parsed at this
point..

This reverts commit 312ae5161f.
This commit is contained in:
Thomas Lamprecht 2020-05-06 17:40:33 +02:00
parent c5530455c4
commit 14f7c4fd15

View File

@ -1636,8 +1636,6 @@ sub verify_rule {
if !$allow_groups;
&$add_error('action', "invalid characters in security group name")
if $action && ($action !~ m/^${security_group_name_pattern}$/);
&$add_error('action', "security group '$action' does not exist")
if $action && !defined($cluster_conf->{groups}->{$action});
} else {
&$add_error('type', "unknown rule type '$type'");
}