From dab5f0071dad67ade6c1bdddfed40d7f6ab3a085 Mon Sep 17 00:00:00 2001 From: Kourosh Vivan Date: Mon, 23 Sep 2019 11:33:20 +0200 Subject: [PATCH] Fix cinder playbook undefined variable If you run the cinder playbook with the tag rsyslog_client-install, then cinder_all_software_updated can be unset. This patch fix the error by checking if the variable is defined before call. Change-Id: I7c7e66a56ae00275d4f57538c374038bfd1e8e65 Closes-Bug: 1835631 --- playbooks/os-cinder-install.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/os-cinder-install.yml b/playbooks/os-cinder-install.yml index b1436d2cdd..283f43749f 100644 --- a/playbooks/os-cinder-install.yml +++ b/playbooks/os-cinder-install.yml @@ -115,6 +115,7 @@ - { name: "cinder-volume", action: "reloaded" } - { name: "cinder-backup", action: "reloaded" } when: + - "cinder_all_software_updated is defined" - "cinder_all_software_updated | bool" - "ansible_local['openstack_ansible']['cinder']['need_service_restart'] | bool"