Skip to content
This repository has been archived by the owner on Sep 14, 2019. It is now read-only.

Commit

Permalink
[minor] remove extra prints on windows agent
Browse files Browse the repository at this point in the history
  • Loading branch information
jvehent committed Sep 14, 2014
1 parent c682ba2 commit c70d5cf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/mig/agent/env_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,13 @@ func getSysInfo() (hostname, domain, osname, osversion string, err error) {
buf := bytes.NewReader(out)
reader := bufio.NewReader(buf)
iter := 0
fmt.Println("parsing systeminfo output")
for {
lineBytes, _, err := reader.ReadLine()
// don't loop more than 2000 times
if err != nil || iter > 2000 {
goto exit
}
line := fmt.Sprintf("%s", lineBytes)
fmt.Println(line)
if strings.Contains(line, "OS Name:") {
out := strings.SplitN(line, ":", 2)
if len(out) == 2 {
Expand Down

0 comments on commit c70d5cf

Please sign in to comment.