octavia: only run tearDown on success

This commit is contained in:
Frode Nordahl
2020-04-08 07:35:14 +02:00
parent 116da9ca6c
commit 91c120a650

View File

@@ -73,6 +73,8 @@ class LBAASv2Test(test_utils.OpenStackBaseTest):
Note that resources created in the configure step prior to executing
the test should not be touched here.
"""
if not cls.run_tearDown:
return
for lb in cls.loadbalancers:
cls.octavia_client.load_balancer_delete(lb['id'], cascade=True)
try: