Merge "pylint: fix trailing-comma-tuple warning"

This commit is contained in:
Zuul 2019-01-16 14:25:21 +00:00 committed by Gerrit Code Review
commit 5dcf0db34b
3 changed files with 2 additions and 3 deletions

View File

@ -77,7 +77,6 @@ disable=
too-many-nested-blocks,
too-many-return-statements,
too-many-statements,
trailing-comma-tuple,
useless-object-inheritance
[Basic]

View File

@ -23,7 +23,7 @@ ZANATA_LOCALES_URL = ("https://translate.openstack.org/rest/project"
DOMAINS = ['django', 'djangojs']
MODULES = ['horizon', 'openstack_dashboard']
PROJECT = 'horizon'
BRANCH = 'master',
BRANCH = 'master'
POFILE = "{module}/locale/{locale}/LC_MESSAGES/{domain}.po"
POFILE_URL = ("https://translate.openstack.org/rest/file/translation/{project}"
"/{branch}/{language}/po?docId={module}%2Flocale%2F{domain}")

View File

@ -180,7 +180,7 @@ class DeleteTenantsAction(policy.PolicyTargetMixin, tables.DeleteAction):
)
policy_rules = (("identity", "identity:delete_project"),)
policy_target_attrs = ("target.project.domain_id", "domain_id"),
policy_target_attrs = (("target.project.domain_id", "domain_id"),)
def allowed(self, request, project):
if api.keystone.is_multi_domain_enabled() \