Skip to content

Commit 5aad53d

Browse files
committed
topology_controller: do not create backup if already provisioned
If the topology is already provisioned (in containers) we do not need to take the backup at all. Previsously, the backup was taken but not removed from disk when finished.
1 parent 559faa3 commit 5aad53d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sssd_test_framework/topology_controllers.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ def init(self, *args, **kwargs):
3636
super().init(*args, **kwargs)
3737
self.provisioned = self.name in self.multihost.provisioned_topologies
3838

39+
def topology_setup(self, *args, **kwargs) -> None:
40+
if self.provisioned:
41+
self.logger.info(f"Topology '{self.name}' is already provisioned")
42+
return
43+
44+
super().topology_setup(*args, **kwargs)
45+
3946
def topology_teardown(self, *args, **kwargs) -> None:
4047
if self.provisioned:
4148
return

0 commit comments

Comments
 (0)