Browse Source

Fix task role report

* Use roles array instead of a single role

Change-Id: Ia995b64f827bb78ffd7888f14130ae0ca289ef7f
changes/57/342357/2
Dmitry Ilyin 3 years ago
parent
commit
9c48a9799e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/noop/task/report.rb

+ 2
- 2
lib/noop/task/report.rb View File

@@ -13,8 +13,8 @@ Spec:     <%= task.file_path_spec %>
13 13
 Modules:  <%= Noop::Config.list_path_modules.join(':') %>
14 14
 Manifest: <%= task.file_path_manifest %>
15 15
 
16
-Node:     <%= task.hiera_lookup 'fqdn' or '?' %>
17
-Role:     <%= task.hiera_lookup 'role' or '?' %>
16
+Node:     <%= task.hiera_lookup 'fqdn', '?' %>
17
+Roles:    <%= task.hiera_array('roles', ['?']).join(' ') %>
18 18
 
19 19
 Hiera hierarchy:
20 20
 <% task.hiera_hierarchy.each do |element| -%>

Loading…
Cancel
Save