Merge pull request #21272 from Microsoft/jstarks/manifest_updates

Add os_version and os_features to Image
This commit is contained in:
John Howard 2016-04-05 16:16:25 -07:00
commit 3f3ba02798
3 changed files with 27 additions and 8 deletions

View file

@ -57,10 +57,7 @@ func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer) {
// console which supports ANSI emulation, or fall-back to the golang emulator
// (github.com/azure/go-ansiterm).
func useNativeConsole() bool {
osv, err := system.GetOSVersion()
if err != nil {
return false
}
osv := system.GetOSVersion()
// Native console is not available before major version 10
if osv.MajorVersion < 10 {