BUGFIX: if http request no host of container is required

This commit is contained in:
Jeroen De Meerleer 2021-05-25 19:44:57 +02:00
parent f8e3e6d50c
commit a8cff06e87
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 4 additions and 2 deletions

View File

@ -206,7 +206,8 @@ class Job
switch($values['data']['hosttype']) {
default:
$values['data']['hosttype'] = $values['data']['crontype'] == 'http' ? '' : 'local';
if($values['data']['crontype'] == 'http') break;
$values['data']['hosttype'] = 'local';
case 'local':
$values['data']['host'] = 'localhost';
break;
@ -240,7 +241,8 @@ class Job
switch($values['data']['containertype']) {
default:
$values['data']['containertype'] = $values['data']['crontype'] == 'http' ? '' :'none';
if($values['data']['crontype'] == 'http') break;
$values['data']['containertype'] = 'none';
case 'none':
// No options for no container
break;