2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Add emphasis to the HTTPS cert

This is a particularly significant
step that warrants highlighting.
This commit is contained in:
Jarrod Johnson 2020-06-26 12:40:07 -04:00
parent a704c0cdab
commit 1896b51f82

View File

@ -22,6 +22,12 @@ try:
except NameError:
pass
def emprint(txt):
if sys.stdout.isatty():
print('\x1b[1m\x1b[4m' + txt + '\x1b[0m')
else:
print(txt)
fnamechars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.^'
def main(args):
ap = argparse.ArgumentParser(description='Manage OS deployment resources')
@ -100,7 +106,7 @@ def initialize(cmdset):
if cmdset.t:
didsomething = True
certutil.create_certificate()
print('New HTTPS certificates generated, restart the web server')
emprint('New HTTPS certificates generated, restart the web server')
if cmdset.s:
didsomething = True
sshutil.initialize_ca()