Don't download artifacts/salt when downloading artifacts

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-01-16 02:41:17 +00:00 committed by Pedro Algarvio
parent b962bb9ee7
commit be5707d934

View file

@ -1148,7 +1148,17 @@ class VM:
source = f"{self.name}:{remote_path}/"
destination = "artifacts/"
description = f"Downloading {source} ..."
self.rsync(source, destination, description)
self.rsync(
source,
destination,
description,
[
"--exclude",
f"{remote_path}/artifacts/salt",
"--exclude",
f"{remote_path}/artifacts/salt-*.*",
],
)
def rsync(self, source, destination, description, rsync_flags: list[str] = None):
"""