summaryrefslogtreecommitdiff
path: root/barbicanclient/v1/acls.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-11-05 04:49:47 +0000
committerGerrit Code Review <review@openstack.org>2019-11-05 04:49:47 +0000
commitcb0a791c4d650876bde0047aa2a01d6879238905 (patch)
tree6857f212a86d6fac421ccdb84bfe83637306447a /barbicanclient/v1/acls.py
parent16760f3b44d6466d2018ce7765556d5b69d9d806 (diff)
parent0863f04a2673cb92934a509ca689a9b06441286a (diff)
downloadpython-barbicanclient-cb0a791c4d650876bde0047aa2a01d6879238905.tar.gz
Merge "docs: Turn on warning-as-error"
Diffstat (limited to 'barbicanclient/v1/acls.py')
-rw-r--r--barbicanclient/v1/acls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/barbicanclient/v1/acls.py b/barbicanclient/v1/acls.py
index 7724048..2db597a 100644
--- a/barbicanclient/v1/acls.py
+++ b/barbicanclient/v1/acls.py
@@ -269,14 +269,14 @@ class ACL(object):
self._operation_acls.append(new_acl)
def _get_operation_acl(self, operation_type):
- return next((acl for acl in self._operation_acls
- if acl.operation_type == operation_type), None)
+ return next((acl for acl in self._operation_acls
+ if acl.operation_type == operation_type), None)
def get(self, operation_type):
"""Get operation specific ACL instance.
:param str operation_type: Type indicating which operation's ACL
- setting is needed.
+ setting is needed.
"""
return self._get_operation_acl(operation_type)