Merge branch 'task/advanced-reboot'
This commit is contained in:
commit
4bdf0970cf
|
@ -49,8 +49,7 @@ if (filter_var($jobnameResult[0]["url"], FILTER_VALIDATE_URL)) {
|
|||
$timestamp = time();
|
||||
|
||||
} else {
|
||||
|
||||
if($jobnameResult[0]["url"] != "reboot") {
|
||||
if(!stristr($jobnameResult[0]["url"],"reboot")) {
|
||||
$body = '';
|
||||
$statuscode = 0;
|
||||
$url = "ssh " . $jobnameResult[0]['host'] . " '" . $jobnameResult[0]['url'] . "' 2>&1";
|
||||
|
|
|
@ -81,7 +81,7 @@ foreach ($results as $result) {
|
|||
$body = $res->getBody();
|
||||
} else {
|
||||
|
||||
if($result["url"] != "reboot") {
|
||||
if(!stristr($result["url"],"reboot")) {
|
||||
$body = '';
|
||||
$statuscode = 0;
|
||||
$url = "ssh " . $result['host'] . " '" . $result['url'] . "' 2>&1";
|
||||
|
|
Loading…
Reference in New Issue