Skip to content

Commit

Permalink
fix(action): avoid restart/reload if missing plugins deps (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
garnier-quentin authored Aug 3, 2022
1 parent 5df4a17 commit 058ea94
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gorgone/gorgone/modules/core/action/class.pm
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ sub validate_plugins_rpm {
($rv, $message, $installed) = $self->check_plugins_rpm(%options);
return ($rv, $message) if ($rv == -1);
if ($rv == 1) {
$self->{logger}->writeLogError("[action] validate plugins - still some to install: " . join(' ', @$installed));
$message = 'validate plugins - still some to install: ' . join(' ', @$installed);
$self->{logger}->writeLogError("[action] $message");
return (1, $message);
}

return 0;
Expand All @@ -297,7 +299,9 @@ sub validate_plugins_deb {
($rv, $message, $installed) = $self->check_plugins_deb(plugins => $plugins);
return ($rv, $message) if ($rv == -1);
if ($rv == 1) {
$self->{logger}->writeLogError("[action] validate plugins - still some to install: " . join(' ', @$installed));
$message = 'validate plugins - still some to install: ' . join(' ', @$installed);
$self->{logger}->writeLogError("[action] $message");
return (1, $message);
}

return 0;
Expand Down

0 comments on commit 058ea94

Please sign in to comment.