* 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
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;
}
}
?>