Merge "[API Replay] Stop processing when security group creation fails" into stable/train

This commit is contained in:
Zuul 2021-05-17 16:54:16 +00:00 committed by Gerrit Code Review
commit 83e18c193c
1 changed files with 2 additions and 0 deletions

View File

@ -419,6 +419,8 @@ class ApiReplayClient(utils.PrepareObjectForMigration):
except Exception as e:
self.add_error("Failed to create security group (%(sg)s): "
"%(e)s" % {'sg': sg, 'e': e})
# Don't bother going to rules
continue
# Use bulk rules creation for the rules of the SG
if not sg_rules: