just found out dc and region are going to be a bit different, as Region didn't previously exist in the Node struct.

This commit is contained in:
Kate Taggart
2017-03-29 16:27:08 -07:00
committed by Alex Dadgar
parent a5c4663efb
commit d10bfb46c1
2 changed files with 5 additions and 0 deletions

View File

@@ -295,6 +295,8 @@ func GetTaskEnv(taskDir *allocdir.TaskDir, node *structs.Node,
SetJobName(alloc.Job.Name).
SetEnvvars(task.Env).
SetTaskName(task.Name)
SetDatacenterName(node.Datacenter)
SetRegionName(node.Region)
// Vary paths by filesystem isolation used
drv, err := NewDriver(task.Driver, NewEmptyDriverContext())

View File

@@ -735,6 +735,9 @@ type Node struct {
// Datacenter for this node
Datacenter string
// Region for this node
Region string
// Node name
Name string