add log decorator for neutron_client public method
some methods don't have log decorator, which cause unnecessary exception message in log when resource not found. Change-Id: Id1490262c99af43d4a7116f360c5eafaa9b50780
This commit is contained in:
parent
47b7b7720e
commit
ed9a697cd6
@ -139,6 +139,7 @@ class Client(object):
|
|||||||
fips = self.client.list_floatingips()['floatingips']
|
fips = self.client.list_floatingips()['floatingips']
|
||||||
return fips
|
return fips
|
||||||
|
|
||||||
|
@logged
|
||||||
def list_pools_v2(self):
|
def list_pools_v2(self):
|
||||||
"""This method is used to get the pools list.
|
"""This method is used to get the pools list.
|
||||||
|
|
||||||
@ -175,6 +176,7 @@ class Client(object):
|
|||||||
|
|
||||||
return resources
|
return resources
|
||||||
|
|
||||||
|
@logged
|
||||||
def list_members_v2(self):
|
def list_members_v2(self):
|
||||||
"""Method is used to list the members info.
|
"""Method is used to list the members info.
|
||||||
|
|
||||||
@ -199,6 +201,7 @@ class Client(object):
|
|||||||
resources.append(member)
|
resources.append(member)
|
||||||
return resources
|
return resources
|
||||||
|
|
||||||
|
@logged
|
||||||
def list_health_monitors_v2(self):
|
def list_health_monitors_v2(self):
|
||||||
"""Method is used to list the health monitors
|
"""Method is used to list the health monitors
|
||||||
|
|
||||||
@ -386,6 +389,7 @@ class Client(object):
|
|||||||
|
|
||||||
return status_dict
|
return status_dict
|
||||||
|
|
||||||
|
@logged
|
||||||
def list_listener(self):
|
def list_listener(self):
|
||||||
"""This method is used to get the list of the listeners."""
|
"""This method is used to get the list of the listeners."""
|
||||||
resp = self.client.list_listeners()
|
resp = self.client.list_listeners()
|
||||||
@ -396,12 +400,14 @@ class Client(object):
|
|||||||
listener['operating_status'] = status[listener.get('id')]
|
listener['operating_status'] = status[listener.get('id')]
|
||||||
return resources
|
return resources
|
||||||
|
|
||||||
|
@logged
|
||||||
def list_loadbalancer(self):
|
def list_loadbalancer(self):
|
||||||
"""This method is used to get the list of the loadbalancers."""
|
"""This method is used to get the list of the loadbalancers."""
|
||||||
resp = self.client.list_loadbalancers()
|
resp = self.client.list_loadbalancers()
|
||||||
resources = resp.get('loadbalancers')
|
resources = resp.get('loadbalancers')
|
||||||
return resources
|
return resources
|
||||||
|
|
||||||
|
@logged
|
||||||
def get_loadbalancer_stats(self, loadbalancer_id):
|
def get_loadbalancer_stats(self, loadbalancer_id):
|
||||||
"""This method is used to get the statistics of the loadbalancer.
|
"""This method is used to get the statistics of the loadbalancer.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user