From 42f067b041f4dba4d5ea2d060c5c0b42694fd2a5 Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Thu, 27 Feb 2025 14:45:45 +0100 Subject: [PATCH] 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 Signed-off-by: Stoiko Ivanov Signed-off-by: Thomas Lamprecht --- src/PMG/RESTEnvironment.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PMG/RESTEnvironment.pm b/src/PMG/RESTEnvironment.pm index f6ff449..0ccacb2 100644 --- a/src/PMG/RESTEnvironment.pm +++ b/src/PMG/RESTEnvironment.pm @@ -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});