From 92404089566e152b2a056007cd3e7e0faf6f8b9e Mon Sep 17 00:00:00 2001 From: Shreya Date: Thu, 14 Jan 2021 18:13:13 +0530 Subject: [PATCH] Make function static (as per CR) --- monkey/infection_monkey/network/postgresql_fingerprint.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/network/postgresql_fingerprint.py b/monkey/infection_monkey/network/postgresql_fingerprint.py index e6b9b41ad..eb3ff359d 100644 --- a/monkey/infection_monkey/network/postgresql_fingerprint.py +++ b/monkey/infection_monkey/network/postgresql_fingerprint.py @@ -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