Fix failing test suite

This commit is contained in:
Dane Everitt 2017-11-04 12:49:05 -05:00
parent 99aceaca38
commit 71b90650de
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 41 additions and 46 deletions

View file

@ -54,6 +54,11 @@ class ServerConfigurationStructureService
$server = $this->repository->getDataForCreation($server);
}
$pack = $server->getRelation('pack');
if (! is_null($pack)) {
$pack = $server->getRelation('pack')->uuid;
}
return [
'uuid' => $server->uuid,
'build' => [
@ -74,7 +79,7 @@ class ServerConfigurationStructureService
],
'service' => [
'egg' => $server->egg->uuid,
'pack' => object_get($server, 'pack.uuid'),
'pack' => $pack,
'skip_scripts' => $server->skip_scripts,
],
'rebuild' => false,