@@ -65,6 +65,7 @@ def __init__(
6565 self .expect_instances = expect_instances
6666 self .expect_instances .sort ()
6767 self .cfg = copy .deepcopy (basecfg )
68+ self .old_version = self .cfg .version
6869 self .default_starter_args = self .cfg .default_starter_args .copy ()
6970 if moreopts is None :
7071 self .moreopts = []
@@ -687,7 +688,7 @@ def replace_binary_for_upgrade(self, new_install_cfg, relaunch=True):
687688 logging .info ("StarterManager: respawned instance as [%s]" , str (self .instance .pid ))
688689 self .cfg = new_install_cfg
689690 self .arangosh = None
690- self .detect_arangosh_instances (new_install_cfg , old_version )
691+ self .detect_arangosh_instances (new_install_cfg , self . old_version )
691692
692693 @step
693694 def kill_specific_instance (self , which_instances ):
@@ -1080,7 +1081,7 @@ def detect_instance_pids(self):
10801081 )
10811082
10821083 self .show_all_instances ()
1083- self .detect_arangosh_instances (self .cfg , self .cfg . version )
1084+ self .detect_arangosh_instances (self .cfg , self .old_version )
10841085
10851086 @step
10861087 def detect_fatal_errors (self ):
@@ -1339,7 +1340,7 @@ def run_starter(self, expect_to_fail=False):
13391340
13401341 @step
13411342 def detect_instances (self ):
1342- self .detect_arangosh_instances (self .cfg , self .cfg . version )
1343+ self .detect_arangosh_instances (self .cfg , self .old_version )
13431344
13441345 @step
13451346 def detect_instance_pids (self ):
0 commit comments