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 06444d60d5)
mr11.1.1
Guillem Jover 4 years ago committed by Mykola Malkov
parent d8a2298dae
commit affd0ce9e6

@ -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