Skip to content

Commit

Permalink
Re-add sleep of 2 sec before looking for partitions
Browse files Browse the repository at this point in the history
This fixes issue solo-io#162 and solo-io#165. I refactored the timeout handling,
with solo-io#169 by increasing the existing timeout and removing the additional 2 sec
sleep, because the 2 sec sleep was not working in all cases.
Unfortunately, the increase alone is not sufficient, so I'm re-adding
the 2 sec sleep again.
  • Loading branch information
thomasmerx committed Jun 11, 2024
1 parent 61676eb commit bb416a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/builder/step_map_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (s *stepMapImage) Run(_ context.Context, state multistep.StateBag) multiste
loop := strings.Split(path, "/")[2]
prefix := loop + "p"

time.Sleep(2 * time.Second)
// Look for all partitions of created loopback
var partitions []string
cPartitions := make(chan []string)
Expand Down

0 comments on commit bb416a6

Please sign in to comment.