mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix typo in cryptography backend. (#54634)
This commit is contained in:
parent
188903448a
commit
51f41a2298
1 changed files with 1 additions and 1 deletions
|
@ -1278,7 +1278,7 @@ class AssertOnlyCertificateCryptography(Certificate):
|
||||||
|
|
||||||
def _validate_invalid_at():
|
def _validate_invalid_at():
|
||||||
if self.invalid_at[0]:
|
if self.invalid_at[0]:
|
||||||
if (self.get_relative_time_option(self.invalid_at[0], 'invalid_at') > self.cert.not_valid_before) \
|
if (self.get_relative_time_option(self.invalid_at[0], 'invalid_at') <= self.cert.not_valid_before) \
|
||||||
or (self.get_relative_time_option(self.invalid_at, 'invalid_at') >= self.cert.not_valid_after):
|
or (self.get_relative_time_option(self.invalid_at, 'invalid_at') >= self.cert.not_valid_after):
|
||||||
self.message.append(
|
self.message.append(
|
||||||
'Certificate is not invalid for the specified date (%s) - notBefore: %s - notAfter: %s' % (self.invalid_at,
|
'Certificate is not invalid for the specified date (%s) - notBefore: %s - notAfter: %s' % (self.invalid_at,
|
||||||
|
|
Loading…
Add table
Reference in a new issue