Correctly expose OOM disable state for a server

This commit is contained in:
Dane Everitt 2021-09-13 21:02:12 -07:00
parent f5a1ce13b8
commit 5fdb0a5909
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 9 additions and 1 deletions

View file

@ -58,9 +58,13 @@ class ServerConfigurationStructureService
'cpu_limit' => $server->cpu,
'threads' => $server->threads,
'disk_space' => $server->disk,
'oom_disabled' => $server->oom_disabled,
],
'container' => [
'image' => $server->image,
// This field is deprecated — use the value in the "build" block.
//
// TODO: remove this key in V2.
'oom_disabled' => $server->oom_disabled,
'requires_rebuild' => false,
],