restenv: query arguments in check_node_is_master

Mira noticed this while testing logging in to a secondary node with
OIDC and autocreate.

As check_node_is_master is only used in one other place (without
$noerr) I assume this simply never got noticed.

Reported-by: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Stoiko Ivanov 2025-02-27 14:45:45 +01:00 committed by Thomas Lamprecht
parent 874c21874c
commit 42f067b041

View File

@ -103,7 +103,7 @@ sub check_user_exist {
}
sub check_node_is_master {
my ($self, $noerr);
my ($self, $noerr) = @_;
my $master = PMG::Cluster::get_master_node($self->{cinfo});