use global version of server variable

This commit is contained in:
Seth Schoen 2012-08-10 17:59:09 -07:00
parent 846d476d21
commit efa9714b23

View file

@ -157,6 +157,7 @@ def authenticate():
Main call to do DV_SNI validation and deploy the trustify certificate
TODO: This should be turned into a class...
"""
global server
assert server or "CHOCOLATESERVER" in os.environ, "Must specify server via command line or CHOCOLATESERVER environment variable."
if "CHOCOLATESERVER" in os.environ:
server = os.environ["CHOCOLATESERVER"]