]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/protected/API/Pages/API/PoolsShow.php
baculum: API endpoints code refactor
[bacula/bacula] / gui / baculum / protected / API / Pages / API / PoolsShow.php
index 2d40a5f4321182fb06c924cc9941db2ce12d1810..64747149ee4d088f3a9f9e5c23aff543d2939f6a 100644 (file)
@@ -3,7 +3,7 @@
  * Bacula(R) - The Network Backup Solution
  * Baculum   - Bacula web interface
  *
- * Copyright (C) 2013-2016 Kern Sibbald
+ * Copyright (C) 2013-2017 Kern Sibbald
  *
  * The main author of Baculum is Marcin Haba.
  * The original author of Bacula is Kern Sibbald, with contributions
@@ -23,9 +23,9 @@
 class PoolsShow extends BaculumAPIServer {
 
        public function get() {
-               $pools = $this->getModule('bconsole')->bconsoleCommand($this->director, array('show', 'pools'), $this->user);
-               $this->output = $pools->output;
-               $this->error = (integer)$pools->exitcode;
+               $result = $this->getModule('bconsole')->bconsoleCommand($this->director, array('show', 'pools'));
+               $this->output = $result->output;
+               $this->error = $result->exitcode;
        }
 }
 ?>