From 5a34d16484264fee6f763100e15c64c1585cc96e Mon Sep 17 00:00:00 2001 From: Vladimir Sedmik Date: Mon, 4 Dec 2023 22:46:33 +0100 Subject: [PATCH] Clear import path before import --- robottelo/host_helpers/satellite_mixins.py | 1 + 1 file changed, 1 insertion(+) diff --git a/robottelo/host_helpers/satellite_mixins.py b/robottelo/host_helpers/satellite_mixins.py index b17325a8492..751e9607ffc 100644 --- a/robottelo/host_helpers/satellite_mixins.py +++ b/robottelo/host_helpers/satellite_mixins.py @@ -200,6 +200,7 @@ def move_pulp_archive(self, org, export_message): sets ownership, returns import path """ self.execute( + f'rm -rf {PULP_IMPORT_DIR}/{org.name} &&' f'mv {PULP_EXPORT_DIR}/{org.name} {PULP_IMPORT_DIR} && ' f'chown -R pulp:pulp {PULP_IMPORT_DIR}' )