From 62ac481806bc37f06ccf6917ad4e72794c2cc14a Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 20 Oct 2017 18:22:33 +1300 Subject: [PATCH] [ci-workers] Handle ansible_processor being either a string or a list --- contrib/ci-workers/templates/host.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ci-workers/templates/host.j2 b/contrib/ci-workers/templates/host.j2 index 3a5abb0c2..65c4cb709 100644 --- a/contrib/ci-workers/templates/host.j2 +++ b/contrib/ci-workers/templates/host.j2 @@ -1,3 +1,3 @@ OS: {{ ansible_distribution }} {{ ansible_distribution_version }} Memory: {{ ansible_memtotal_mb }} MB -CPU: {{ ansible_processor[1] }} +CPU: {{ ansible_processor if ansible_processor is string else ansible_processor[1] }} ({{ ansible_processor_cores }} cores)