summaryrefslogtreecommitdiff
path: root/openstackclient/identity/v2_0/endpoint.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-09-11 02:43:53 +0000
committerGerrit Code Review <review@openstack.org>2015-09-11 02:43:54 +0000
commit0daa0969392dce50266d8dcac31a68d2ba02602f (patch)
treeb064e34392225d0ab144765784f4f171b8760429 /openstackclient/identity/v2_0/endpoint.py
parentfa4b11a86f05cbf3b542a795267490a65d477b0e (diff)
parente3c46ece4a496584a54b9d39b55921990db4a7b3 (diff)
downloadpython-openstackclient-0daa0969392dce50266d8dcac31a68d2ba02602f.tar.gz
Merge "Use a common decorator to log 'take_action' activation"
Diffstat (limited to 'openstackclient/identity/v2_0/endpoint.py')
-rw-r--r--openstackclient/identity/v2_0/endpoint.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/openstackclient/identity/v2_0/endpoint.py b/openstackclient/identity/v2_0/endpoint.py
index 370a931d..1744cc72 100644
--- a/openstackclient/identity/v2_0/endpoint.py
+++ b/openstackclient/identity/v2_0/endpoint.py
@@ -62,8 +62,8 @@ class CreateEndpoint(show.ShowOne):
)
return parser
+ @utils.log_method(log)
def take_action(self, parsed_args):
- self.log.debug('take_action(%s)', parsed_args)
identity_client = self.app.client_manager.identity
service = common.find_service(identity_client, parsed_args.service)
endpoint = identity_client.endpoints.create(
@@ -93,8 +93,8 @@ class DeleteEndpoint(command.Command):
help=_('Endpoint ID to delete'))
return parser
+ @utils.log_method(log)
def take_action(self, parsed_args):
- self.log.debug('take_action(%s)', parsed_args)
identity_client = self.app.client_manager.identity
identity_client.endpoints.delete(parsed_args.endpoint)
return
@@ -115,8 +115,8 @@ class ListEndpoint(lister.Lister):
)
return parser
+ @utils.log_method(log)
def take_action(self, parsed_args):
- self.log.debug('take_action(%s)', parsed_args)
identity_client = self.app.client_manager.identity
if parsed_args.long:
columns = ('ID', 'Region', 'Service Name', 'Service Type',
@@ -150,8 +150,8 @@ class ShowEndpoint(show.ShowOne):
)
return parser
+ @utils.log_method(log)
def take_action(self, parsed_args):
- self.log.debug('take_action(%s)', parsed_args)
identity_client = self.app.client_manager.identity
data = identity_client.endpoints.list()
match = None