From b82f156232e535a4417612d8d925ad0b032822dd Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Thu, 31 May 2018 11:51:49 +0300 Subject: [PATCH] Fixed logging when fetching Android images --- selenoid/docker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selenoid/docker.go b/selenoid/docker.go index d9e9e7c..0bfd97a 100644 --- a/selenoid/docker.go +++ b/selenoid/docker.go @@ -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 { @@ -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