]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Always filter by tenant_id in stack_get_by_name.
authorSteve Baker <sbaker@redhat.com>
Wed, 14 Nov 2012 03:23:12 +0000 (16:23 +1300)
committerSteve Baker <sbaker@redhat.com>
Wed, 14 Nov 2012 03:23:12 +0000 (16:23 +1300)
commitbc2c6dbcfe097b45f53b162f6433e6fdd2ca9fa7
treee34728d4ae8a01c05d8fb4ee40708d4d58186575
parent18564e60e063dac98348f00aa91c7eb5de98996b
Always filter by tenant_id in stack_get_by_name.

This means that all calls to stack_get_by_name need to provide a context.

Without this change, 2 tenants cannot create stacks with the same name.

Change-Id: I98c35a5d51c5c7d66e0b8a0fddc04f221d1d6ab7
heat/db/sqlalchemy/api.py
heat/engine/service.py
heat/engine/watchrule.py
heat/tests/test_engine_service.py