summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/includes/restfunctions.php
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-08-13 14:02:37 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-08-14 12:59:17 +0200
commit3aadac3b9b8412ac91095ef8586605fe3da0d8b7 (patch)
tree4e8a4f7cf419b316eed79da8c695c20b61e397dc /admin/WebConsole/includes/restfunctions.php
parent179e1b1d53ef3d6c964af445c66d423e56cf76c1 (diff)
#980 Update POST /mode to the new ogServer API
This patch selects the machines whose modes need to be changed using the client's IP rather than their scope names.
Diffstat (limited to 'admin/WebConsole/includes/restfunctions.php')
-rw-r--r--admin/WebConsole/includes/restfunctions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php
index 5c689a70..ec4a323c 100644
--- a/admin/WebConsole/includes/restfunctions.php
+++ b/admin/WebConsole/includes/restfunctions.php
@@ -230,8 +230,8 @@ function session($string_ips, $params) {
common_request(OG_REST_CMD_SESSION, POST, $data);
}
-function set_mode($scope_name, $mode) {
- $data = array(OG_REST_PARAM_SCOPE_NAME => $scope_name,
+function set_mode($ip, $mode) {
+ $data = array(OG_REST_PARAM_CLIENTS => array($ip),
OG_REST_PARAM_MODE => $mode);
common_request(OG_REST_CMD_MODE, POST, $data);