]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/protected/API/Pages/API/StoragesShow.php
baculum: API endpoints code refactor
[bacula/bacula] / gui / baculum / protected / API / Pages / API / StoragesShow.php
index ea8fb01601085f0505240b0b7ab674b5a647397c..17357d3ee7de2e3df0e98f82c05ee08a779cbfb3 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 StoragesShow extends BaculumAPIServer {
 
        public function get() {
-               $storages = $this->getModule('bconsole')->bconsoleCommand($this->director, array('show', 'storages'), $this->user);
-               $this->output = $storages->output;
-               $this->error = (integer)$storages->exitcode;
+               $result = $this->getModule('bconsole')->bconsoleCommand($this->director, array('show', 'storages'));
+               $this->output = $result->output;
+               $this->error = $result->exitcode;
        }
 }
 ?>