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 #132 from vania-pooh/master
Browse files Browse the repository at this point in the history
Using contains for matching Docker for Windows (related to #117)
  • Loading branch information
vania-pooh authored Jan 21, 2018
2 parents 9f35442 + f16f569 commit a8ceafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selenoid/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ func (c *DockerConfigurator) isDockerForWindows() bool {
c.Pointf("Failed to determine whether this is Docker for Windows: %v", err)
return false
}
return info.OSType == "linux" && info.OperatingSystem == "Docker for Windows"
return strings.Contains(info.OSType, "linux") && strings.Contains(strings.ToLower(info.OperatingSystem), "windows")
}

func isVideoRecordingSupported(logger Logger, version string) bool {
Expand Down

0 comments on commit a8ceafb

Please sign in to comment.