Merge "[API Replay] Stop processing when security group creation fails"
This commit is contained in:
commit
7aee65cbdb
@ -418,6 +418,8 @@ class ApiReplayClient(utils.PrepareObjectForMigration):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.add_error("Failed to create security group (%(sg)s): "
|
self.add_error("Failed to create security group (%(sg)s): "
|
||||||
"%(e)s" % {'sg': sg, 'e': e})
|
"%(e)s" % {'sg': sg, 'e': e})
|
||||||
|
# Don't bother going to rules
|
||||||
|
continue
|
||||||
|
|
||||||
# Use bulk rules creation for the rules of the SG
|
# Use bulk rules creation for the rules of the SG
|
||||||
if not sg_rules:
|
if not sg_rules:
|
||||||
|
Loading…
Reference in New Issue
Block a user