Преглед на файлове

container-engine: skip openshift_docker_log_driver when it is False

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Giuseppe Scrivano преди 7 години
родител
ревизия
5431d1228d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      roles/container_runtime/templates/daemon.json

+ 1 - 1
roles/container_runtime/templates/daemon.json

@@ -5,7 +5,7 @@
     "disable-legacy-registry": false,
     "disable-legacy-registry": false,
     "exec-opts": ["native.cgroupdriver=systemd"],
     "exec-opts": ["native.cgroupdriver=systemd"],
     "insecure-registries": {{ l_docker_insecure_registries }},
     "insecure-registries": {{ l_docker_insecure_registries }},
-{% if openshift_docker_log_driver is defined  %}
+{% if openshift_docker_log_driver  %}
     "log-driver": "{{ openshift_docker_log_driver }}",
     "log-driver": "{{ openshift_docker_log_driver }}",
 {%- endif %}
 {%- endif %}
     "log-opts": {{ l_docker_log_options_dict }},
     "log-opts": {{ l_docker_log_options_dict }},