From 1164e1b8f5e4ae362dbd2df4adf1cbe0ca6c218b Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 16 Apr 2021 20:42:16 +0200 Subject: [PATCH] TT#119058 Use real service name for ngcp-sems-b2b MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With newer systemd versions the is-enabled command returns «alias» and a success exit code for service names that are aliases instead of «disabled» and an error exit code, as was previously the case with older versions, which breaks the expected goss checks. Change-Id: I94d56cf5c9cd32d8b7579a4ce12136295876a472 --- 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 dd2a694..7caf11f 100644 --- a/templates/510_init-daemons-ngcp.yaml.tt2 +++ b/templates/510_init-daemons-ngcp.yaml.tt2 @@ -99,7 +99,7 @@ service: enabled: [% is_mgmt && ldap.enable == "yes" ? 'true' : 'false' %] running: [% is_mgmt && ldap.enable == "yes" ? 'true' : 'false' %] - sems-b2b.service: + ngcp-sems-b2b.service: enabled: false running: {{if and [% is_proxy && (pbx.enable == "yes" || b2b.enable == "yes") ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}}