Fix condition for disabling old Murano services

In cases, during installation Murano plugin, when Murano from
box is installed and was disabled on UI we also need to disable
old Murano services.

Related-Bug: #1631379
Change-Id: I4edb340cd6c84f53629e25656171a61f1df51a8e
This commit is contained in:
Denis Egorenko 2016-10-06 19:27:23 +03:00 committed by Kirill Zaitsev
parent 3baa7a973b
commit d5be672343
1 changed files with 3 additions and 2 deletions

View File

@ -180,9 +180,10 @@
condition:
yaql_exp: >
$.get('detach-murano', {}).get('metadata', {}).get('enabled', false) and
$.murano.enabled and $.network_metadata.nodes.values().any(
$.network_metadata.nodes.values().any(
('murano-node' in $.node_roles) or
('primary-murano-node' in $.node_roles))
('primary-murano-node' in $.node_roles)) and ($.murano.enabled or
changedAny($.murano.enabled))
required_for: [murano-controller-end]
parameters:
puppet_manifest: manifests/murano_disable_old.pp