mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
Update command format in PMIx plugin
This commit is contained in:
parent
04ee1db8e5
commit
5ea8ffeb34
|
@ -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, 0, Result::Ok, transition))
|
Cmds(make<TransitionStatus>(fDeviceId, 0, Result::Ok, transition, GetCurrentDeviceState()))
|
||||||
.Serialize(Format::JSON),
|
.Serialize(Format::JSON),
|
||||||
{sender});
|
{sender});
|
||||||
} else {
|
} else {
|
||||||
fCommands.Send(
|
fCommands.Send(
|
||||||
Cmds(make<TransitionStatus>(fDeviceId, 0, Result::Failure, transition))
|
Cmds(make<TransitionStatus>(fDeviceId, 0, Result::Failure, transition, GetCurrentDeviceState()))
|
||||||
.Serialize(Format::JSON),
|
.Serialize(Format::JSON),
|
||||||
{sender});
|
{sender});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user