summaryrefslogtreecommitdiffstats
path: root/src/Server/Requests
diff options
context:
space:
mode:
Diffstat (limited to 'src/Server/Requests')
-rw-r--r--src/Server/Requests/CommandRequest.cpp2
-rw-r--r--src/Server/Requests/DaemonStateUpdateRequest.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Server/Requests/CommandRequest.cpp b/src/Server/Requests/CommandRequest.cpp
index 33f8dc0..c3c09b9 100644
--- a/src/Server/Requests/CommandRequest.cpp
+++ b/src/Server/Requests/CommandRequest.cpp
@@ -26,7 +26,7 @@ namespace Requests {
void CommandRequest::sendRequest() {
Common::XmlPacket packet;
packet.setType("Command");
- packet.add("command", reboot ? "reboot" : "shutdown");
+ packet.set("command", reboot ? "reboot" : "shutdown");
sendPacket(packet);
}
diff --git a/src/Server/Requests/DaemonStateUpdateRequest.cpp b/src/Server/Requests/DaemonStateUpdateRequest.cpp
index 4bdf003..ef4c4f1 100644
--- a/src/Server/Requests/DaemonStateUpdateRequest.cpp
+++ b/src/Server/Requests/DaemonStateUpdateRequest.cpp
@@ -27,8 +27,8 @@ void DaemonStateUpdateRequest::sendRequest() {
Common::XmlPacket packet;
packet.setType("UpdateHostState");
- packet.add("name", name);
- packet.add("state", state);
+ packet.set("name", name);
+ packet.set("state", state);
sendPacket(packet);
}