From e2b171d7ad2d9758c792f540f66d1363d48fc7b3 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Thu, 17 Aug 2017 10:36:19 -0500 Subject: [PATCH] Simplify the string check for offline db migrations The old string check was too specific which causes services like lbaasv2 and vpnaas to fail when attempting an offline migration. This change simply makes that stdout conditional simpler. Closes-Bug: #1705420 Change-Id: Id24aaf852df5b9d19d201763554dcbfe0275e3e2 Signed-off-by: Kevin Carter --- tasks/neutron_db_setup.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/neutron_db_setup.yml b/tasks/neutron_db_setup.yml index c9ba81b2..433be98d 100644 --- a/tasks/neutron_db_setup.yml +++ b/tasks/neutron_db_setup.yml @@ -38,7 +38,7 @@ register: _offline_migrations_check failed_when: - "_offline_migrations_check.rc == 1" - - "'Need to apply migrations from neutron contract branch' not in _offline_migrations_check.stdout" + - "'Need to apply migrations' not in _offline_migrations_check.stdout" - name: Set the fact for the required offline migrations ini_file: @@ -48,7 +48,7 @@ value: "True" when: - "'stdout' in _offline_migrations_check" - - "'Need to apply migrations from neutron contract branch' in _offline_migrations_check.stdout" + - "'Need to apply migrations' in _offline_migrations_check.stdout" notify: Restart neutron services - name: Refresh local facts