diff --git a/opt/ahenk/base/registration/Registration.py b/opt/ahenk/base/registration/Registration.py index 062c21b..223029d 100644 --- a/opt/ahenk/base/registration/Registration.py +++ b/opt/ahenk/base/registration/Registration.py @@ -46,7 +46,7 @@ class Registration: j = json.loads(reg_reply) self.logger.debug('[Registration]' + j['message']) status = str(j['status']).lower() - dn = str(j['agentDn']).lower() + dn = str(j['agentDn']) self.logger.debug('[Registration] Registration status: ' + str(status)) diff --git a/opt/ahenk/base/util/util.py b/opt/ahenk/base/util/util.py index 1343122..ade925c 100644 --- a/opt/ahenk/base/util/util.py +++ b/opt/ahenk/base/util/util.py @@ -240,9 +240,9 @@ class Util: return False @staticmethod - def get_md5_file(fname): + def get_md5_file(file_path): hash_md5 = hashlib.md5() - with open(fname, 'rb') as f: + with open(file_path, 'rb') as f: for chunk in iter(lambda: f.read(4096), b""): hash_md5.update(chunk) return str(hash_md5.hexdigest())