mirror of https://github.com/dirtbags/tanks.git
tput fall back to FS
This commit is contained in:
parent
41b448dbba
commit
4fac8f422e
|
@ -39,7 +39,7 @@ def read_tank(infile):
|
||||||
def post_tank(headers, code, url):
|
def post_tank(headers, code, url):
|
||||||
token = os.environ.get('token')
|
token = os.environ.get('token')
|
||||||
if not token:
|
if not token:
|
||||||
raise RuntimeError("Must provide token in 'token' environment variable")
|
token = open('token').readline().strip()
|
||||||
request = {}
|
request = {}
|
||||||
request['token'] = token
|
request['token'] = token
|
||||||
request['name'] = headers.get('Tank-Name', '')
|
request['name'] = headers.get('Tank-Name', '')
|
||||||
|
|
Loading…
Reference in New Issue