mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net-mgmt/telegraf: Remove sessionClose()
This commit is contained in:
committed by
Franco Fichtner
parent
8e8e577268
commit
f882de47f0
-1
@@ -43,7 +43,6 @@ class KeyController extends ApiMutableModelControllerBase
|
||||
}
|
||||
public function getKeyAction($uuid = null)
|
||||
{
|
||||
$this->sessionClose();
|
||||
return $this->getBase('key', 'keys.key', $uuid);
|
||||
}
|
||||
public function addKeyAction()
|
||||
|
||||
-9
@@ -46,8 +46,6 @@ class ServiceController extends ApiControllerBase
|
||||
public function startAction()
|
||||
{
|
||||
if ($this->request->isPost()) {
|
||||
// close session for long running action
|
||||
$this->sessionClose();
|
||||
$backend = new Backend();
|
||||
$response = $backend->configdRun("telegraf start");
|
||||
return array("response" => $response);
|
||||
@@ -63,8 +61,6 @@ class ServiceController extends ApiControllerBase
|
||||
public function stopAction()
|
||||
{
|
||||
if ($this->request->isPost()) {
|
||||
// close session for long running action
|
||||
$this->sessionClose();
|
||||
$backend = new Backend();
|
||||
$response = $backend->configdRun("telegraf stop");
|
||||
return array("response" => $response);
|
||||
@@ -80,8 +76,6 @@ class ServiceController extends ApiControllerBase
|
||||
public function restartAction()
|
||||
{
|
||||
if ($this->request->isPost()) {
|
||||
// close session for long running action
|
||||
$this->sessionClose();
|
||||
$backend = new Backend();
|
||||
$response = $backend->configdRun("telegraf restart");
|
||||
return array("response" => $response);
|
||||
@@ -124,9 +118,6 @@ class ServiceController extends ApiControllerBase
|
||||
public function reconfigureAction()
|
||||
{
|
||||
if ($this->request->isPost()) {
|
||||
// close session for long running action
|
||||
$this->sessionClose();
|
||||
|
||||
$mdlGeneral = new General();
|
||||
$backend = new Backend();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user