ServerCreationService: send 'start_on_completion' option to wings (#3431)
This commit is contained in:
parent
cc05b0886b
commit
1260965dfd
1 changed files with 6 additions and 1 deletions
|
@ -162,7 +162,12 @@ class ServerCreationService
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->daemonServerRepository->setServer($server)->create(
|
$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) {
|
} catch (DaemonConnectionException $exception) {
|
||||||
$this->serverDeletionService->withForce(true)->handle($server);
|
$this->serverDeletionService->withForce(true)->handle($server);
|
||||||
|
|
Loading…
Reference in a new issue