mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
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:
committed by
Alex Dadgar
parent
a5c4663efb
commit
d10bfb46c1
@@ -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())
|
||||
|
||||
@@ -735,6 +735,9 @@ type Node struct {
|
||||
// Datacenter for this node
|
||||
Datacenter string
|
||||
|
||||
// Region for this node
|
||||
Region string
|
||||
|
||||
// Node name
|
||||
Name string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user