timeout should be int

This commit is contained in:
JerryXiao 2019-04-10 21:03:38 +08:00
parent 3fd4fb3c79
commit f64b42e11b
Signed by: Jerry
GPG Key ID: 9D9CE43650FF2BAA
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ class jobsManager:
else:
timeout = 60
logger.info(f'Uploading {f}, timeout in {timeout}s')
mon_bash(UPLOAD_CMD.format(src=f), seconds=timeout)
mon_bash(UPLOAD_CMD.format(src=f), seconds=int(timeout))
if f.name.endswith(PKG_SUFFIX):
logger.info(f'Requesting repo update for {f.name}')
res = rrun('push_done', args=(f.name,), kwargs={'overwrite': False,})