From 7519b6ff11c55f4450717f8df6b173247ba1b1db Mon Sep 17 00:00:00 2001 From: caishan Date: Tue, 13 Feb 2018 22:56:48 -0800 Subject: [PATCH] Change comments of parameter in function. Changing comments of parameter in function, and double quotation marks. Change-Id: I872a02b427078492d25dd5ab4d3f9184191e1bad --- senlin/policies/base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/senlin/policies/base.py b/senlin/policies/base.py index ee03891a1..57f8c3f23 100644 --- a/senlin/policies/base.py +++ b/senlin/policies/base.py @@ -226,7 +226,7 @@ class Policy(object): """Build trust-based connection parameters. :param user: the user for which the trust will be checked. - :param object: the user for which the trust will be checked. + :param project: the user for which the trust will be checked. """ service_creds = senlin_context.get_service_credentials() params = { @@ -315,13 +315,13 @@ class Policy(object): return self._lbaasclient def attach(self, cluster, enabled=True): - '''Method to be invoked before policy is attached to a cluster. + """Method to be invoked before policy is attached to a cluster. :param cluster: The cluster to which the policy is being attached to. :param enabled: The attached cluster policy is enabled or disabled. :returns: (True, message) if the operation is successful, or (False, error) otherwise. - ''' + """ if self.PROFILE_TYPE == ['ANY']: return True, None @@ -334,7 +334,7 @@ class Policy(object): return True, None def detach(self, cluster): - '''Method to be invoked before policy is detached from a cluster.''' + """Method to be invoked before policy is detached from a cluster.""" return True, None def need_check(self, target, action): @@ -347,11 +347,11 @@ class Policy(object): return False def pre_op(self, cluster_id, action): - '''A method that will be invoked before an action execution.''' + """A method that will be invoked before an action execution.""" return def post_op(self, cluster_id, action): - '''A method that will be invoked after an action execution.''' + """A method that will be invoked after an action execution.""" return def to_dict(self):