From 93d7626ac5c1ea92663b68ebe89b4e90a027a275 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Mon, 1 May 2017 17:36:20 -0700 Subject: [PATCH] fix old arch --- website/source/docs/job-specification/group.html.md | 2 +- website/source/docs/runtime/interpolation.html.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/source/docs/job-specification/group.html.md b/website/source/docs/job-specification/group.html.md index 22c389150..d5b075e94 100644 --- a/website/source/docs/job-specification/group.html.md +++ b/website/source/docs/job-specification/group.html.md @@ -81,7 +81,7 @@ will restrict the tasks to 64-bit operating systems. ```hcl group "example" { constraint { - attribute = "${attr.arch}" + attribute = "${attr.cpu.arch}" value = "amd64" } diff --git a/website/source/docs/runtime/interpolation.html.md b/website/source/docs/runtime/interpolation.html.md index 6e9fd2ce2..b23917967 100644 --- a/website/source/docs/runtime/interpolation.html.md +++ b/website/source/docs/runtime/interpolation.html.md @@ -94,7 +94,7 @@ driver. ${attr.<property>} Property given by property on the client - ${attr.arch} => amd64 + ${attr.cpu.arch} => amd64 ${meta.<key>} @@ -111,7 +111,7 @@ Below is a table documenting common node properties: Description - ${attr.arch} + ${attr.cpu.arch} CPU architecture of the client (e.g. amd64, 386) @@ -166,7 +166,7 @@ Here are some examples of using node attributes and properties in a job file: job "docs" { # This will constrain this job to only run on 64-bit clients. constraint { - attribute = "${attr.arch}" + attribute = "${attr.cpu.arch}" value = "amd64" }