MT#56187 Fix rate-o-mat process check too

Apply the same logic on the process check as was done for the service
check.

Change-Id: I36a515431fb23467d11e0c519cc30a12b1279c13
(cherry picked from commit 14a3162f56)
(cherry picked from commit e1a74ddeab)
mr10.5.2
Guillem Jover 3 years ago committed by Mykola Malkov
parent e9af6245f0
commit 1c015889f7

@ -106,7 +106,11 @@ process:
running: true
ngcp-rate-o-mat:
running: [% is_proxy ? 'true' : 'false' %]
[% IF rateomat.ha_mode == 'active-active' -%]
running: [% is_proxy && rateomat.enable == "yes" ? 'true' : 'false' %]
[% ELSE -%]
running: {{if and [% is_proxy && rateomat.enable == "yes" ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}}
[% END -%]
nginx:
running: [% (is_mgmt || is_lb || is_li_dist) && nginx.enable == 'yes' ? 'true' : 'false' %]

Loading…
Cancel
Save