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

Commit

Permalink
Fixed logging when fetching Android images
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed May 31, 2018
1 parent 8544c2d commit b82f156
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions selenoid/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ func (c *DockerConfigurator) getBrowsersToIterate(requestedBrowsers map[string]*
"opera": "selenoid/opera",
}
if len(requestedBrowsers) > 0 {
if _, ok := requestedBrowsers[android]; ok {
defaultBrowsers[android] = "selenoid/android"
}
ret := make(map[string]string)
for browserName := range requestedBrowsers {
if image, ok := defaultBrowsers[browserName]; ok {
Expand All @@ -389,9 +392,6 @@ func (c *DockerConfigurator) getBrowsersToIterate(requestedBrowsers map[string]*
c.Errorf("Unsupported browser: %s", browserName)
}

if _, ok := requestedBrowsers[android]; ok {
ret["android"] = "selenoid/android"
}
return ret
}
return defaultBrowsers
Expand Down

0 comments on commit b82f156

Please sign in to comment.