From fc65a9cb8b9f432e3e6b4280be8f34ceef65fd47 Mon Sep 17 00:00:00 2001 From: Thierry bordaz (tbordaz) Date: Dec 03 2013 08:16:41 +0000 Subject: Ticket 47586 - Need to rebind after a stop (fix to run direct python script) Bug Description: After a restart we need to rebind to the instance. The fixture restore the instance from a backup that means we need to rebind after the restore Fix Description: When creating the topology object, rebind the instance https://fedorahosted.org/389/ticket/47586 Reviewed by: Rich Megginson (thanks Rich) Platforms tested: F19 Flag Day: no Doc impact: no --- diff --git a/dirsrvtests/tickets/ticket47490_test.py b/dirsrvtests/tickets/ticket47490_test.py index b6e591e..4fa8ffd 100644 --- a/dirsrvtests/tickets/ticket47490_test.py +++ b/dirsrvtests/tickets/ticket47490_test.py @@ -49,8 +49,8 @@ def _ds_rebind_instance(dirsrv): class TopologyMasterConsumer(object): def __init__(self, master, consumer): - self.master = master - self.consumer = consumer + self.master = _ds_rebind_instance(master) + self.consumer = _ds_rebind_instance(consumer) def pattern_errorlog(file, log_pattern): try: