mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-27 13:28:51 +07:00
hacking - account for job names that contain separators (#75454)
Some job names contain '/' which causes the download job to fail. Example job name: `Post-job: Checkout ansible/ansible@refs/pull/75445/merge to ansible.log`
This commit is contained in:
@@ -214,6 +214,10 @@ def download_run(args):
|
||||
parent_id = parent_of.get(p['id'], None)
|
||||
|
||||
path = " ".join(names)
|
||||
|
||||
# Some job names have the separator in them.
|
||||
path = path.replace(os.sep, '_')
|
||||
|
||||
log_path = os.path.join(output_dir, '%s.log' % path)
|
||||
if args.verbose:
|
||||
print(log_path)
|
||||
|
||||
Reference in New Issue
Block a user