Skip to content

Commit ad7bd35

Browse files
committed
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
1 parent c43052d commit ad7bd35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Synergy/Reactor/InABox.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ async sub handle_create ($self, $event, $switches) {
262262
join ', ',
263263
grep { $snapshot_regions{$_} } $self->box_datacentres->@*;
264264

265+
await $self->dobby->transfer_image_to_regions($snapshot, $self->box_datacentres);
266+
265267
if ($compatible_regions) {
266268
return await $event->reply(
267269
"I'm unable to create snapshot in region '$region'. Available compatible regions are $compatible_regions."

0 commit comments

Comments
 (0)