From 5a6d6d64c5870ca044b184318cbc3bb059933be8 Mon Sep 17 00:00:00 2001 From: Taseer Date: Mon, 3 Sep 2018 13:38:29 +0500 Subject: [PATCH] Handle condition when log setting not customized Initially, no log levels are defined in the var file. Customization left to users. This patch adds the condition to run the customization task only when those variables have been defined, else installation will fail. Change-Id: I9acff6e7cd86100525b327819a148f0471ce5716 Signed-off-by: Taseer --- tasks/configure_odl_logs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/configure_odl_logs.yml b/tasks/configure_odl_logs.yml index 3d651d8..d3a007b 100644 --- a/tasks/configure_odl_logs.yml +++ b/tasks/configure_odl_logs.yml @@ -6,6 +6,7 @@ regexp: "^log4j2.{{ item.value.log_name }}.level.*s" line: "log4j2.{{ item.value.log_name }}.level = {{ item.value.log_level }}" with_dict: "{{ log_levels }}" + when: "item.value.log_name != None" - name: configure console logging block: -- 2.36.6