Fix comment

This commit is contained in:
Alex Dadgar 2016-09-17 11:31:17 -07:00
parent 40fc1d1dfd
commit 83905075e5

View file

@ -662,7 +662,7 @@ func (r *AllocRunner) recoverVaultTokens() error {
return fmt.Errorf("failed to determine task %s secret dir in alloc %q: %v", task, r.alloc.ID, err) return fmt.Errorf("failed to determine task %s secret dir in alloc %q: %v", task, r.alloc.ID, err)
} }
// Write the token to the file system // Read the token from the secret directory
tokenPath := filepath.Join(secretDir, vaultTokenFile) tokenPath := filepath.Join(secretDir, vaultTokenFile)
data, err := ioutil.ReadFile(tokenPath) data, err := ioutil.ReadFile(tokenPath)
if err != nil { if err != nil {