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