Merge "[API Replay] Stop processing when security group creation fails"

This commit is contained in:
Zuul 2021-05-11 05:46:32 +00:00 committed by Gerrit Code Review
commit 7aee65cbdb

View File

@ -418,6 +418,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: