From 06ef28c12cd7931ef562e2ae5e8ec415cb989c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duret?= Date: Thu, 13 Apr 2023 08:55:18 +0200 Subject: [PATCH] (plugin) os::linux::local - mode pending-updates - add brackets --- src/os/linux/local/mode/pendingupdates.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/linux/local/mode/pendingupdates.pm b/src/os/linux/local/mode/pendingupdates.pm index 3c150b889..e38783791 100644 --- a/src/os/linux/local/mode/pendingupdates.pm +++ b/src/os/linux/local/mode/pendingupdates.pm @@ -104,7 +104,7 @@ sub check_options { ) { $self->{command} = 'yum'; $self->{command_options} = 'check-update 2>&1'; - if defined($self->{option_results}->{check_security}) { + if (defined($self->{option_results}->{check_security})) { $self->{command_options} = '-q updateinfo list sec' } } elsif ($self->{option_results}->{os_mode} eq 'debian') {