allow region to also be interpolated, like datacenter.

This commit is contained in:
Kate Taggart 2017-03-29 16:31:23 -07:00 committed by Alex Dadgar
parent 9fa97c38a0
commit 277d5ddb36
1 changed files with 6 additions and 4 deletions

View File

@ -80,6 +80,7 @@ const (
const (
nodeIdKey = "node.unique.id"
nodeDcKey = "node.datacenter"
nodeRegionKey = "node.region"
nodeNameKey = "node.unique.name"
nodeClassKey = "node.class"
@ -241,6 +242,7 @@ func (t *TaskEnvironment) Build() *TaskEnvironment {
// Set up the node values.
t.NodeValues[nodeIdKey] = t.Node.ID
t.NodeValues[nodeDcKey] = t.Node.Datacenter
t.NodeValues[nodeRegionKey] = t.Node.Region
t.NodeValues[nodeNameKey] = t.Node.Name
t.NodeValues[nodeClassKey] = t.Node.NodeClass