Make function static (as per CR)
This commit is contained in:
parent
3225e6d20d
commit
9240408956
|
@ -109,7 +109,8 @@ class PostgreSQLFinger(HostFinger):
|
||||||
elif len(exceptions) == 2: # SSL configured so checks for both
|
elif len(exceptions) == 2: # SSL configured so checks for both
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def found_entry_for_host_but_pwd_auth_failed(self, exception):
|
@staticmethod
|
||||||
if self.RELEVANT_EX_SUBSTRINGS[0] in exception:
|
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 True # entry found in pg_hba.conf file but password authentication failed
|
||||||
return False # entry not found in pg_hba.conf file
|
return False # entry not found in pg_hba.conf file
|
||||||
|
|
Loading…
Reference in New Issue