Browse Source

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
Thierry bordaz (tbordaz) 12 years ago
parent
commit
fc65a9cb8b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dirsrvtests/tickets/ticket47490_test.py

+ 2 - 2
dirsrvtests/tickets/ticket47490_test.py

@@ -49,8 +49,8 @@ def _ds_rebind_instance(dirsrv):
 
 
 class TopologyMasterConsumer(object):
 class TopologyMasterConsumer(object):
     def __init__(self, master, consumer):
     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):
 def pattern_errorlog(file, log_pattern):
     try:
     try: