diff options
author | huangtianhua <huangtianhua@huawei.com> | 2017-05-18 13:51:06 +0800 |
---|---|---|
committer | huangtianhua <huangtianhua@huawei.com> | 2017-05-23 12:46:15 +0000 |
commit | eac3d39b75e80b33f64038b2f31145d0fc0fbe69 (patch) | |
tree | 9e277e0bb7bbf050d0bfed8d15648b6ba32b4128 /heat/engine/resources/openstack/neutron/lbaas/health_monitor.py | |
parent | 455ef4b48c1460e2b2cab5abe840d3d1bf4e459c (diff) | |
download | heat-eac3d39b75e80b33f64038b2f31145d0fc0fbe69.tar.gz |
Refactor neutron constraints
This changes:
1. remove the implemention of NetworkConstraint, just
inherit from the super class NeutronConstraint;
2. remove the attribute 'cmd_resource' for neutron
constraints, and resolve the 'cmd_resource' in
find_resourceid_by_name_or_id()
Change-Id: I53ec9382a2e42c1a2742735bf15040c9db00f0cc
Diffstat (limited to 'heat/engine/resources/openstack/neutron/lbaas/health_monitor.py')
-rw-r--r-- | heat/engine/resources/openstack/neutron/lbaas/health_monitor.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/heat/engine/resources/openstack/neutron/lbaas/health_monitor.py b/heat/engine/resources/openstack/neutron/lbaas/health_monitor.py index 98b05d29e..0b1fcef24 100644 --- a/heat/engine/resources/openstack/neutron/lbaas/health_monitor.py +++ b/heat/engine/resources/openstack/neutron/lbaas/health_monitor.py @@ -152,8 +152,7 @@ class HealthMonitor(neutron.NeutronResource): if self._lb_id is None: pool_id = self.client_plugin().find_resourceid_by_name_or_id( self.POOL, - self.properties[self.POOL], - cmd_resource='lbaas_pool') + self.properties[self.POOL]) pool = self.client().show_lbaas_pool(pool_id)['pool'] listener_id = pool['listeners'][0]['id'] |