Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Steal copyVolumesFrom from the taken over service, then add the keepa…
Browse files Browse the repository at this point in the history
…live service as copyVolumesFrom
  • Loading branch information
svensp committed Aug 21, 2019
1 parent dab180f commit 7e8dfa8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Blueprint/Keepalive/KeepaliveService.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ public function takeOver()
$this->copySidekicks($this->targetService);
$this->addSidekick($this->targetService);
// copy volumes from so volume-from sidekicks are also added
$this->copyVolumesFrom = $this->targetService->copyVolumesFrom;
$this->targetService->resetSidekicks();

$this->copyVolumesFrom = $this->targetService->copyVolumesFrom;
$this->targetService->copyVolumesFrom = [];
$this->targetService->addCopyVolumesFrom($this);

$this->copyLabels($this->targetService);
$this->targetService->setNetworkMode( new ShareNetworkMode($this) );
}
Expand Down

0 comments on commit 7e8dfa8

Please sign in to comment.