Merge pull request #21272 from Microsoft/jstarks/manifest_updates
Add os_version and os_features to Image
This commit is contained in:
commit
3f3ba02798
3 changed files with 27 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue