From a04731375db50b837e718097e05c3ecff6482dc0 Mon Sep 17 00:00:00 2001 From: Nigel Kukard Date: Sun, 10 Dec 2017 02:15:59 +0000 Subject: [PATCH] Fix override_rc being used when querying containers We're dealing with containers at this stage, not services. We should probably be using override_cont not override_rc. Signed-off-by: Nigel Kukard --- needrestart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/needrestart b/needrestart index 4c97061..85a98f1 100755 --- a/needrestart +++ b/needrestart @@ -1052,7 +1052,7 @@ if(defined($opt_l) && !$uid) { my $o = 0; $ui->notice(__ 'Restarting containers...'); - $ui->query_conts(__('Containers to be restarted:'), $nrconf{defno}, \%conts, $nrconf{override_rc}, + $ui->query_conts(__('Containers to be restarted:'), $nrconf{defno}, \%conts, $nrconf{override_cont}, sub { my $cont = shift; $ui->command(join(' ', '', @{ $conts{$cont} }));