Code Review
/
snaps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Cleaned up extra network created in the test
[snaps.git]
/
snaps
/
openstack
/
tests
/
create_instance_tests.py
diff --git
a/snaps/openstack/tests/create_instance_tests.py
b/snaps/openstack/tests/create_instance_tests.py
index
a45654f
..
0becbf4
100644
(file)
--- a/
snaps/openstack/tests/create_instance_tests.py
+++ b/
snaps/openstack/tests/create_instance_tests.py
@@
-1454,6
+1454,14
@@
class CreateInstancePortManipulationTests(OSIntegrationTestCase):
'Unexpected exception cleaning network with message - %s',
e)
'Unexpected exception cleaning network with message - %s',
e)
+ if self.network_creator2:
+ try:
+ self.network_creator2.clean()
+ except Exception as e:
+ logger.error(
+ 'Unexpected exception cleaning network with message - %s',
+ e)
+
if self.image_creator and not self.image_creator.image_settings.exists:
try:
self.image_creator.clean()
if self.image_creator and not self.image_creator.image_settings.exists:
try:
self.image_creator.clean()