From d7a3cbdc67c37e0c5667f4d1cbb876c13ba42411 Mon Sep 17 00:00:00 2001 From: Eduardo Gonzalez Date: Wed, 4 Jan 2017 15:14:03 +0000 Subject: [PATCH] Fix code style in start_compute.yml Add space in jinja definition and specify nova-compute in set volume fact task name. TrivialFix Change-Id: I94a3bb2415f1f8d60c646b488be4acc09c489a0a --- ansible/roles/nova/tasks/start_compute.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/nova/tasks/start_compute.yml b/ansible/roles/nova/tasks/start_compute.yml index 70e5e88e0d..6ea62dc01b 100644 --- a/ansible/roles/nova/tasks/start_compute.yml +++ b/ansible/roles/nova/tasks/start_compute.yml @@ -30,7 +30,7 @@ until: start_nova_libvirt_container|success when: inventory_hostname in groups['compute'] -- name: Prepare volumes list +- name: Prepare nova-compute volumes list set_fact: nova_compute_volumes: - "{{ node_config_directory }}/nova-compute/:{{ container_config_directory }}/:ro" @@ -42,7 +42,7 @@ - "{% if enable_iscsid | bool %}iscsi_info:/etc/iscsi{% endif %}" - "libvirtd:/var/lib/libvirt" - "nova_compute:/var/lib/nova/" - - "{% if enable_cinder_backend_nfs | bool %}/var/lib/nova/mnt:/var/lib/nova/mnt:shared{% endif %}" + - "{% if enable_cinder_backend_nfs | bool %}/var/lib/nova/mnt:/var/lib/nova/mnt:shared{% endif %}" - name: Starting nova-compute container kolla_docker: @@ -51,7 +51,7 @@ image: "{{ nova_compute_image_full }}" name: "nova_compute" privileged: True - volumes: '{{ nova_compute_volumes | reject("equalto", "") | list}}' + volumes: '{{ nova_compute_volumes | reject("equalto", "") | list }}' when: - not enable_nova_fake | bool - not enable_ironic | bool