Merge "create_db_entry_for_new_instance did not call sgh for default"

This commit is contained in:
Jenkins 2012-11-15 22:52:28 +00:00 committed by Gerrit Code Review
commit ca3501267c

View File

@ -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,