We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18706f4 commit 2fa147dCopy full SHA for 2fa147d
renew_mit_certs.py
@@ -15,6 +15,7 @@
15
16
NON_SCRIPTS_VHOSTS_ALIAS = ["sipb.mit.edu"]
17
18
+
19
def get_expiring_certs():
20
"""
21
Most of this function is from find_expiring_certs.py
@@ -53,7 +54,9 @@ def get_expiring_certs():
53
54
def renew_expiring_mit_certs():
55
expiring = get_expiring_certs()
56
for _, uid, hostnames in expiring:
- mit_hostnames = [h for h in hostnames if not ('.' in h and not 'mit.edu' in h)]
57
+ mit_hostnames = [
58
+ h for h in hostnames if '.' not in h or h.endswith('.mit.edu')
59
+ ]
60
if 'mit.edu' in hostnames[0]:
61
try:
62
hostnames = request_cert(uid, mit_hostnames)
0 commit comments