FrappyNode.target must be set after stop but before restart
This commit is contained in:
@ -790,7 +790,6 @@ class FrappyNode(SecNodeDevice, Moveable):
|
||||
if cfg is None:
|
||||
self.log.error('can not restart - previous cfg unknown')
|
||||
return
|
||||
self._setROParam('target', cfg)
|
||||
ins = config.instrument
|
||||
fm = FrappyManager()
|
||||
info = fm.get_ins_info(ins)
|
||||
@ -801,6 +800,7 @@ class FrappyNode(SecNodeDevice, Moveable):
|
||||
self._disconnect()
|
||||
session.log.info('stop frappy_%s %r %r', self.service, running_cfg, cfg)
|
||||
fm.do_stop(ins, self.service)
|
||||
self._setROParam('target', cfg)
|
||||
try:
|
||||
is_cfg = cfg and ':' not in cfg
|
||||
if is_cfg:
|
||||
|
Reference in New Issue
Block a user