Private GIT

Skip to content
Snippets Groups Projects
Commit 4d67e4da authored by Sylvestre Ho's avatar Sylvestre Ho
Browse files

refs #5106; change type for status

parent 5a667623
Branches
Tags
No related merge requests found
...@@ -46,13 +46,15 @@ class PollerEvent ...@@ -46,13 +46,15 @@ class PollerEvent
/** /**
* Array of output - should be the output of the process after * Array of output - should be the output of the process after
* performing the action * performing the action
* The output strings will be displayed on the UI
* @var array * @var array
*/ */
private $output; private $output;
/** /**
* Whether or not action is successful, 0 = successful * Whether or not action is successful.
* @var int * true = successful, false = error
* @var bool
*/ */
private $status; private $status;
...@@ -63,7 +65,7 @@ class PollerEvent ...@@ -63,7 +65,7 @@ class PollerEvent
{ {
$this->pollerId = $pollerId; $this->pollerId = $pollerId;
$this->output = array(); $this->output = array();
$this->status = 0; $this->status = true;
} }
/** /**
......
...@@ -55,6 +55,8 @@ class EngineProcess ...@@ -55,6 +55,8 @@ class EngineProcess
$output = array(); $output = array();
exec($command, $output, $status); exec($command, $output, $status);
$event->setOutput($output); $event->setOutput($output);
$event->setStatus($status); $event->setStatus(
$status ? false : true
);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment