From bb4b078e1b0fdb4b7be5b087c69e473a67ac1b7a Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 4 Nov 2024 15:47:31 -0600 Subject: [PATCH] Fix variable name in NSSDatabase.get_cert_info() --- base/common/python/pki/nssdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/common/python/pki/nssdb.py b/base/common/python/pki/nssdb.py index 11b716f015b..6f7e9562cf1 100644 --- a/base/common/python/pki/nssdb.py +++ b/base/common/python/pki/nssdb.py @@ -2105,7 +2105,7 @@ def get_cert_info(self, nickname, token=None): not_before = cert_obj.not_valid_before_utc else: # use the deprecated attribute then convert into UTC - not_valid_before = cert_obj.not_valid_before.replace(tzinfo=datetime.timezone.utc) + not_before = cert_obj.not_valid_before.replace(tzinfo=datetime.timezone.utc) cert['not_before'] = self.convert_time_to_millis(not_before) if hasattr(cert_obj, 'not_valid_after_utc'):