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

Commit

Permalink
Pulling video recorder image only once (fixes #106)
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Nov 27, 2017
1 parent a71ee59 commit 90c14a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selenoid/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ func (c *DockerConfigurator) createConfig() SelenoidConfig {
pulledTags := tags
if c.DownloadNeeded {
pulledTags = c.pullImages(image, tags)
c.pullVideoRecorderImage()
} else if c.LastVersions > 0 && c.LastVersions <= len(tags) {
pulledTags = tags[:c.LastVersions]
}
Expand All @@ -288,6 +287,9 @@ func (c *DockerConfigurator) createConfig() SelenoidConfig {
browsers[browserName] = c.createVersions(browserName, image, pulledTags)
}
}
if c.DownloadNeeded {
c.pullVideoRecorderImage()
}
return browsers
}

Expand Down

0 comments on commit 90c14a0

Please sign in to comment.