mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Remove deprecated comment.
This commit is contained in:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user