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

Commit

Permalink
Merge pull request #107 from vania-pooh/master
Browse files Browse the repository at this point in the history
Pulling video recorder image only once (fixes #106)
  • Loading branch information
vania-pooh authored Nov 27, 2017
2 parents a71ee59 + 90c14a0 commit 2855c57
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 2855c57

Please sign in to comment.