From b342dd1dfa6fbf2ff5be53441a6a940375f61167 Mon Sep 17 00:00:00 2001 From: Shishir Mahajan Date: Tue, 23 Feb 2021 18:51:54 -0800 Subject: [PATCH] Fix typo. --- etchosts/etchosts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etchosts/etchosts.go b/etchosts/etchosts.go index d67674a..f98de7d 100644 --- a/etchosts/etchosts.go +++ b/etchosts/etchosts.go @@ -37,7 +37,7 @@ var ( } ) -// BuildEtcHosts builds CONTAINER_TASK_DIR/etc_hosts with defaults. +// BuildEtcHosts builds NOMAD_TASK_DIR/etc_hosts with defaults. func BuildEtcHosts(hostsFile string) error { content := bytes.NewBuffer(nil) @@ -51,7 +51,7 @@ func BuildEtcHosts(hostsFile string) error { return ioutil.WriteFile(hostsFile, content.Bytes(), 0644) } -// CopyEtcHosts copies /etc/hosts to CONTAINER_TASK_DIR/etc_hosts +// CopyEtcHosts copies /etc/hosts to NOMAD_TASK_DIR/etc_hosts func CopyEtcHosts(hostsFile string) error { srcFile, err := os.Open("/etc/hosts") if err != nil {