[manager] Fix a bug when no postbuildhook is specified

This commit is contained in:
David Biancolin 2019-02-01 20:02:46 +00:00
parent 68cec343b7
commit fd61a474ae
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ def aws_build(global_build_config, bypass=False):
with open(hwdb_entry_file_location + "/" + afiname, "w") as outputfile:
outputfile.write(agfi_entry)
if global_build_config.post_build_hook is not None:
if global_build_config.post_build_hook:
with StreamLogger('stdout'), StreamLogger('stderr'):
localcap = local("""{} {}""".format(global_build_config.post_build_hook,
results_build_dir,