Fix egg importing from seeder

This commit is contained in:
Dane Everitt 2020-12-13 10:34:51 -08:00
parent 638ea2e815
commit 1dacd703df
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -87,7 +87,9 @@ class EggUpdateImporterService
'name' => object_get($parsed, 'name'), 'name' => object_get($parsed, 'name'),
'description' => object_get($parsed, 'description'), 'description' => object_get($parsed, 'description'),
'features' => object_get($parsed, 'features'), 'features' => object_get($parsed, 'features'),
'docker_image' => object_get($parsed, 'image'), // Maintain backwards compatibility for eggs that are still using the old single image
// string format. New eggs can provide an array of Docker images that can be used.
'docker_images' => object_get($parsed, 'images') ?? [object_get($parsed, 'image')],
'config_files' => object_get($parsed, 'config.files'), 'config_files' => object_get($parsed, 'config.files'),
'config_startup' => object_get($parsed, 'config.startup'), 'config_startup' => object_get($parsed, 'config.startup'),
'config_logs' => object_get($parsed, 'config.logs'), 'config_logs' => object_get($parsed, 'config.logs'),