Merge "Need to pass port['port'] to _get_tenant_id_for_create()"

This commit is contained in:
Jenkins 2013-02-18 04:58:28 +00:00 committed by Gerrit Code Review
commit 5d44f7ad2d

View File

@ -1161,7 +1161,7 @@ class NvpPluginV2(db_base_plugin_v2.QuantumDbPluginV2,
if attr.is_attr_set(port['port'].get(psec.PORTSECURITY)):
self._enforce_set_auth(context, port,
self.port_security_enabled_update)
tenant_id = self._get_tenant_id_for_create(context, port)
tenant_id = self._get_tenant_id_for_create(context, port['port'])
delete_security_groups = self._check_update_deletes_security_groups(
port)
has_security_groups = self._check_update_has_security_groups(port)