Skip to content

Commit

Permalink
Replacing FullyQualifiedDomainName() function to os.Hostname() to fet…
Browse files Browse the repository at this point in the history
…ch hostname for TaskManager run()
  • Loading branch information
Aayush Kumar committed Aug 5, 2016
1 parent 34130fc commit ecaeaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions task-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package main
import (
"fmt"
"log"
"os"
"strings"
"sync"
"time"

"github.com/ashwanthkumar/golang-utils/maps"
"github.com/ashwanthkumar/golang-utils/netutil"
"github.com/ashwanthkumar/marathon-logger/mesos"
)

Expand Down Expand Up @@ -67,7 +67,7 @@ func (t *TaskManager) Stop() {
}

func (t *TaskManager) run() {
hostname, err := netutil.FullyQualifiedHostname()
hostname, err := os.Hostname()
if err != nil {
log.Fatalf("Error - %v\n", err)
}
Expand Down

0 comments on commit ecaeaf9

Please sign in to comment.