Skip to content
Snippets Groups Projects
Commit df1799b3 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Changed color of SSL cert message.

parent d67fd297
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ import sys ...@@ -10,6 +10,7 @@ import sys
import requests import requests
import imp import imp
YELLOW = '\033[93m'
GREEN = '\033[92m' GREEN = '\033[92m'
RED = '\033[91m' RED = '\033[91m'
DEF = '\033[0m' DEF = '\033[0m'
...@@ -50,7 +51,7 @@ for s, d in conf_servers: ...@@ -50,7 +51,7 @@ for s, d in conf_servers:
print('Checking SSL certificate of %s' % url) print('Checking SSL certificate of %s' % url)
requests.get(url) requests.get(url)
except requests.exceptions.SSLError: except requests.exceptions.SSLError:
print('%sSSL certificate for %s is not valid%s' % (RED, url, DEF)) print('%sSSL certificate for %s is not valid%s' % (YELLOW, url, DEF))
all_ok = False all_ok = False
if not all_ok: if not all_ok:
sys.exit(3) sys.exit(3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment