Merge "Do not use self in classmethod"

This commit is contained in:
Zuul 2019-01-14 03:59:58 +00:00 committed by Gerrit Code Review
commit faeab0847c
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class AssignmentType(object):
class Assignment(base.AssignmentDriverBase):
@classmethod
def default_role_driver(self):
def default_role_driver(cls):
return 'sql'
def create_grant(self, role_id, user_id=None, group_id=None,

View File

@ -252,7 +252,7 @@ class DbSync(BaseApp):
return parser
@classmethod
def check_db_sync_status(self):
def check_db_sync_status(cls):
status = 0
try:
expand_version = upgrades.get_db_version(repo='expand_repo')