Commit 5eda3fe9 authored by Dawn Chen's avatar Dawn Chen

Remove deprecated comment.

parent 28e0c68d
...@@ -26,8 +26,6 @@ import ( ...@@ -26,8 +26,6 @@ import (
func GetHostname(hostnameOverride string) string { func GetHostname(hostnameOverride string) string {
hostname := []byte(hostnameOverride) hostname := []byte(hostnameOverride)
if string(hostname) == "" { if string(hostname) == "" {
// Note: We use exec here instead of os.Hostname() because we
// want the FQDN, and this is the easiest way to get it.
fqdn, err := exec.Command("uname", "-n").Output() fqdn, err := exec.Command("uname", "-n").Output()
if err != nil { if err != nil {
glog.Fatalf("Couldn't determine hostname: %v", err) glog.Fatalf("Couldn't determine hostname: %v", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment