Skip to content

Commit 228efdd

Browse files
committed
modified: singularity/build.py
1 parent 6d74496 commit 228efdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

singularity/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,14 @@ def run_build(build_dir=None,spec_file=None,repo_url=None,token=None,size=None,
330330
"commit": params['commit'],
331331
"repo_id": params['repo_id']}
332332

333-
if token != None:
333+
if params['token'] != None:
334334
response['token'] = params['token']
335335

336336
# Send it back!
337337
if params['response_url'] != None:
338338
response = api_put(url=params['response_url'],
339339
data=response,
340-
token=params['token'])
340+
token=params['token']) # will generate header with token
341341

342342
else:
343343
# Tell the user what is actually there

0 commit comments

Comments
 (0)