ServerCreationService: send 'start_on_completion' option to wings (#3431)

This commit is contained in:
Matthew Penner 2021-07-04 16:15:19 -06:00 committed by GitHub
parent cc05b0886b
commit 1260965dfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,7 +162,12 @@ class ServerCreationService
try {
$this->daemonServerRepository->setServer($server)->create(
$this->configurationStructureService->handle($server)
array_merge(
$this->configurationStructureService->handle($server),
[
'start_on_completion' => Arr::get($data, 'start_on_completion', false),
],
),
);
} catch (DaemonConnectionException $exception) {
$this->serverDeletionService->withForce(true)->handle($server);