]> git.proxmox.com Git - pve-firewall.git/commitdiff
Revert "rules: verify referenced security group exists"
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 May 2020 15:40:33 +0000 (17:40 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 May 2020 15:40:33 +0000 (17:40 +0200)
This could never work, we do not have the groups parsed at this
point..

This reverts commit 312ae5161f80d7cd600d9a182eb0b70492489a05.

src/PVE/Firewall.pm

index eadfc6b1a1204979dfa0961acaa80a4fa47ca087..a2105e5410590b30305bd6941ddcc8bfe40159da 100644 (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}$/);
                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'");
        }
        } else {
            &$add_error('type', "unknown rule type '$type'");
        }