Browse Source

[ci-workers] Handle ansible_processor being either a string or a list

pull/4/head
Jack Grigg 7 years ago
parent
commit
62ac481806
No known key found for this signature in database GPG Key ID: 665DBCD284F7DAFF
  1. 2
      contrib/ci-workers/templates/host.j2

2
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)

Loading…
Cancel
Save