mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
PMIx plugin: adapt to updated commands format
This commit is contained in:
parent
41fc27d504
commit
f00519b99b
|
@ -148,12 +148,12 @@ auto PMIxPlugin::SubscribeForCommands() -> void
|
||||||
Transition transition = static_cast<ChangeState&>(*cmd).GetTransition();
|
Transition transition = static_cast<ChangeState&>(*cmd).GetTransition();
|
||||||
if (ChangeDeviceState(transition)) {
|
if (ChangeDeviceState(transition)) {
|
||||||
fCommands.Send(
|
fCommands.Send(
|
||||||
Cmds(make<TransitionStatus>(fDeviceId, Result::Ok, transition))
|
Cmds(make<TransitionStatus>(fDeviceId, 0, Result::Ok, transition))
|
||||||
.Serialize(Format::JSON),
|
.Serialize(Format::JSON),
|
||||||
{sender});
|
{sender});
|
||||||
} else {
|
} else {
|
||||||
fCommands.Send(
|
fCommands.Send(
|
||||||
Cmds(make<TransitionStatus>(fDeviceId, Result::Failure, transition))
|
Cmds(make<TransitionStatus>(fDeviceId, 0, Result::Failure, transition))
|
||||||
.Serialize(Format::JSON),
|
.Serialize(Format::JSON),
|
||||||
{sender});
|
{sender});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user