Merge "create_db_entry_for_new_instance did not call sgh for default"
This commit is contained in:
commit
ca3501267c
@ -732,6 +732,10 @@ class API(base.Base):
|
||||
self._populate_instance_shutdown_terminate(instance, image,
|
||||
block_device_mapping)
|
||||
|
||||
# ensure_default security group is called before the instance
|
||||
# is created so the creation of the default security group is
|
||||
# proxied to the sgh.
|
||||
self.security_group_api.ensure_default(context)
|
||||
instance = self.db.instance_create(context, instance)
|
||||
|
||||
self._populate_instance_for_bdm(context, instance,
|
||||
|
Loading…
Reference in New Issue
Block a user