Skip to content

Commit

Permalink
WIP InABox: replicate fminabox to all configured regions
Browse files Browse the repository at this point in the history
If on box create we detect that the image isn't available in all our
regions, request they be replicated there
  • Loading branch information
Davis-A committed Mar 11, 2024
1 parent 14953d6 commit 8495249
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Synergy/Reactor/InABox.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 8495249

Please sign in to comment.