diff --git a/roles/upload-afs/library/zuul_afs.py b/roles/upload-afs/library/zuul_afs.py index 10b751dbd..a4ac8edb1 100644 --- a/roles/upload-afs/library/zuul_afs.py +++ b/roles/upload-afs/library/zuul_afs.py @@ -85,11 +85,11 @@ def afs_sync(afssource, afstarget): shell_cmd = bash_cmd.format( src=subsource, dst=subtarget, - filter=filter_file) + filter=filter_file.name) output['source'] = subsource output['destination'] = subtarget output['output'] = subprocess.check_output(shell_cmd, shell=True) - os.remove(filter_file) + os.remove(filter_file.name) return output_blocks