From 1dacd703dfad14fd5a1f3227ed57c8166685b691 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 13 Dec 2020 10:34:51 -0800 Subject: [PATCH] Fix egg importing from seeder --- app/Services/Eggs/Sharing/EggUpdateImporterService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Services/Eggs/Sharing/EggUpdateImporterService.php b/app/Services/Eggs/Sharing/EggUpdateImporterService.php index 3a3913a58..b4705d25e 100644 --- a/app/Services/Eggs/Sharing/EggUpdateImporterService.php +++ b/app/Services/Eggs/Sharing/EggUpdateImporterService.php @@ -87,7 +87,9 @@ class EggUpdateImporterService 'name' => object_get($parsed, 'name'), 'description' => object_get($parsed, 'description'), '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_startup' => object_get($parsed, 'config.startup'), 'config_logs' => object_get($parsed, 'config.logs'),