From 373416658acbba93f273cbf5bd709f1f6a555792 Mon Sep 17 00:00:00 2001 From: "wu.chunyang" Date: Tue, 22 May 2018 14:18:38 +0000 Subject: [PATCH] fix blazar error in deployment when deploy this project,it report an error " blazar_policy_jsons" not found, which result in faild. this ps to fix it Change-Id: Ifa4c0f33642e355be8849f2298d4a73c5e6c602c --- ansible/roles/blazar/handlers/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/blazar/handlers/main.yml b/ansible/roles/blazar/handlers/main.yml index 668305d78f..30ade1e8df 100644 --- a/ansible/roles/blazar/handlers/main.yml +++ b/ansible/roles/blazar/handlers/main.yml @@ -5,7 +5,7 @@ service: "{{ blazar_services[service_name] }}" config_json: "{{ blazar_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}" blazar_conf: "{{ blazar_confs.results|selectattr('item.key', 'equalto', service_name)|first }}" - policy_json: "{{ blazar_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}" + policy_overwriting: "{{ blazar_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}" blazar_api_container: "{{ check_blazar_containers.results|selectattr('item.key', 'equalto', service_name)|first }}" kolla_docker: action: "recreate_or_restart_container" @@ -19,7 +19,7 @@ - service.enabled | bool - config_json.changed | bool or blazar_conf.changed | bool - or policy_json.changed | bool + or policy_overwriting | bool or blazar_api_container.changed | bool - name: Restart blazar-manager container @@ -28,7 +28,7 @@ service: "{{ blazar_services[service_name] }}" config_json: "{{ blazar_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}" blazar_conf: "{{ blazar_confs.results|selectattr('item.key', 'equalto', service_name)|first }}" - policy_json: "{{ blazar_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}" + policy_overwriting: "{{ blazar_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}" blazar_manager_container: "{{ check_blazar_containers.results|selectattr('item.key', 'equalto', service_name)|first }}" kolla_docker: action: "recreate_or_restart_container" @@ -42,5 +42,5 @@ - service.enabled | bool - config_json.changed | bool or blazar_conf.changed | bool - or policy_json.changed | bool + or policy_overwriting.changed | bool or blazar_manager_container.changed | bool