From f78a3aa9e686fd985e37bf8584216c23b0b98db5 Mon Sep 17 00:00:00 2001 From: Matthias Baur Date: Thu, 4 Sep 2025 16:16:06 +0200 Subject: [PATCH] Correctly lookup the provide value from no-pg-version-check Before this, the lookup key in the option hash was wrongly spelled. --- lib/PGDSAT.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PGDSAT.pm b/lib/PGDSAT.pm index c610dec..183bfd8 100644 --- a/lib/PGDSAT.pm +++ b/lib/PGDSAT.pm @@ -69,7 +69,7 @@ sub _init # Cluster to scan if there are several ones running $self->{cluster} = $options{cluster} || ''; # No check for PG version - $self->{no_check_pg_version} = $options{no_check_pg_version} || 0; + $self->{no_pg_version_check} = $options{'no-pg-version-check'} || 0; # Output file $self->{output} = $options{output} || '-'; # Label to use in the title of the report @@ -646,7 +646,7 @@ sub check_1_4 my $self = shift; # Ensure PostgreSQL versions are up-to-date - if ($self->{no_check_pg_version}) + if ($self->{no_pg_version_check}) { $self->logmsg('1.15', 'WARNING', 'PostgreSQL version check was disabled (--no-pg-version-check) can not look for minor version upgrade.'); $self->{results}{'1.4'} = 'FAILURE';