Only init a workspace if doesn't exists

The fix workspace path[1] executes the init
regardless, but to make it work in an upgrade
from rocky to queens we should just move the path
of an existent workspace

[1] https://review.openstack.org/#/c/627782/

Change-Id: I9bdea50be389815f3e8dbe6a42e7628f7b40f9b6
This commit is contained in:
Guilherme Steinmüller 2019-01-28 16:32:16 +00:00 committed by Guilherme Steinmuller Pimentel
parent cc7086298c
commit 1084cd9954
1 changed files with 2 additions and 1 deletions

View File

@ -52,8 +52,9 @@
if ! tempest workspace list | grep -w {{ tempest_workspace }}; then
tempest workspace move --name workspace --path {{ tempest_workspace }}
fi
else
tempest init {{ tempest_workspace }}
fi
tempest init {{ tempest_workspace }}
exit 3
fi
args: