[pmg-devel] [PATCH pmg-api] restenv: pass arguments to check_node_is_master
Stoiko Ivanov
s.ivanov at proxmox.com
Thu Feb 27 14:45:45 CET 2025
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 at proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
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});
--
2.39.5
More information about the pmg-devel
mailing list