]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
LBaaS: Fix healthmonitor disassociation for non-admin
authorEugene Nikanorov <enikanorov@mirantis.com>
Wed, 4 Sep 2013 18:00:40 +0000 (22:00 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Mon, 9 Sep 2013 07:22:46 +0000 (11:22 +0400)
commit9f60611c90b397e2964add8cc5f798ceba4a0487
tree5860b8bac9fdd1f016a222efefe02479884d1454
parent57ce39fa66a23ff7b5adb589b1b5b262a0a00ce8
LBaaS: Fix healthmonitor disassociation for non-admin

Due to specifics of policy engine, checked object should have
tenant_id to be checked by rule admin_or_owner.
In 'disassociate' operation neutron API layer works with
PoolHealthMonitorAssociation which doesn't have tenant_id field.
Need to add it to resulting dict returned by get_pool_health_monitor.

Change-Id: I6c58558b09ff34dedd7da30866275de44d3ba993
Closes-bug: 1220668
neutron/db/loadbalancer/loadbalancer_db.py
neutron/tests/unit/db/loadbalancer/test_db_loadbalancer.py