From 8495249d3b350caac2d5e754354ae8ece385956f Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 11 Mar 2024 13:18:17 +1100 Subject: [PATCH] WIP InABox: replicate fminabox to all configured regions If on box create we detect that the image isn't available in all our regions, request they be replicated there --- lib/Synergy/Reactor/InABox.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Synergy/Reactor/InABox.pm b/lib/Synergy/Reactor/InABox.pm index 9526378d..83e48992 100644 --- a/lib/Synergy/Reactor/InABox.pm +++ b/lib/Synergy/Reactor/InABox.pm @@ -260,6 +260,8 @@ async sub handle_create ($self, $event, $switches) { join ', ', grep { $snapshot_regions{$_} } $self->box_datacentres->@*; + await $self->dobby->transfer_image_to_regions($snapshot, $self->box_datacentres); + if ($compatible_regions) { return await $event->reply( "I'm unable to create snapshot in region '$region'. Available compatible regions are $compatible_regions."