From 1260965dfdc162e9a8507d148467e2ec3f2f3ae2 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sun, 4 Jul 2021 16:15:19 -0600 Subject: [PATCH] ServerCreationService: send 'start_on_completion' option to wings (#3431) --- app/Services/Servers/ServerCreationService.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Services/Servers/ServerCreationService.php b/app/Services/Servers/ServerCreationService.php index f0ef58d1b..e538e6dde 100644 --- a/app/Services/Servers/ServerCreationService.php +++ b/app/Services/Servers/ServerCreationService.php @@ -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);