Make function static (as per CR)

This commit is contained in:
Shreya 2021-01-14 18:13:13 +05:30
parent 3225e6d20d
commit 9240408956
1 changed files with 3 additions and 2 deletions

View File

@ -109,7 +109,8 @@ class PostgreSQLFinger(HostFinger):
elif len(exceptions) == 2: # SSL configured so checks for both
return True
def found_entry_for_host_but_pwd_auth_failed(self, exception):
if self.RELEVANT_EX_SUBSTRINGS[0] in exception:
@staticmethod
def found_entry_for_host_but_pwd_auth_failed(exception):
if PostgreSQLFinger.RELEVANT_EX_SUBSTRINGS[0] in exception:
return True # entry found in pg_hba.conf file but password authentication failed
return False # entry not found in pg_hba.conf file