From e9af6245f0952cc0ac513c6f87c7462cddbd4e48 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 15 Dec 2022 16:38:14 +0100 Subject: [PATCH] MT#56187 Take CE into account for rate-o-mat service check On a CE the general.process_handler is always set to 'none'. So we need to take this into account and mark it as enabled. Change-Id: Id1347ac027412861a1319a95d1537aaeb778bf6a (cherry picked from commit d03cb1fd71a5e897f6279011c3c92af49b1b078b) (cherry picked from commit 45669de3d25f1d818b3f086495bf80eb71730bbe) --- templates/510_init-daemons-ngcp.yaml.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/510_init-daemons-ngcp.yaml.tt2 b/templates/510_init-daemons-ngcp.yaml.tt2 index cd112bc..97d93e3 100644 --- a/templates/510_init-daemons-ngcp.yaml.tt2 +++ b/templates/510_init-daemons-ngcp.yaml.tt2 @@ -60,7 +60,7 @@ service: enabled: [% rateomat.enable == "yes" ? 'true' : 'false' %] running: [% is_proxy && rateomat.enable == "yes" ? 'true' : 'false' %] [% ELSE -%] - enabled: false + enabled: [% general.process_handler == 'none' && asterisk.enable == "yes" ? 'true' : 'false' %] running: {{if and [% is_proxy && rateomat.enable == "yes" ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} [% END -%]