Update API calls to Wings to only pass the required details with the changes to the installer system
This commit is contained in:
parent
869bc22103
commit
e96ead4c4d
4 changed files with 23 additions and 39 deletions
|
@ -162,15 +162,10 @@ class ServerCreationService
|
|||
|
||||
try {
|
||||
$this->daemonServerRepository->setServer($server)->create(
|
||||
array_merge(
|
||||
$this->configurationStructureService->handle($server),
|
||||
[
|
||||
'start_on_completion' => Arr::get($data, 'start_on_completion', false),
|
||||
],
|
||||
),
|
||||
Arr::get($data, 'start_on_completion', false) ?? false
|
||||
);
|
||||
} catch (DaemonConnectionException $exception) {
|
||||
$this->serverDeletionService->withForce(true)->handle($server);
|
||||
$this->serverDeletionService->withForce()->handle($server);
|
||||
|
||||
throw $exception;
|
||||
}
|
||||
|
|
Reference in a new issue