From 4e21ac983ddf9acb32b099dacaf337c3969e4d33 Mon Sep 17 00:00:00 2001 From: Anatoliy Dobrosynets Date: Thu, 5 Mar 2015 17:28:52 +0200 Subject: [PATCH] expand node roles if not partial search --- lib/chef-rundeck.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef-rundeck.rb b/lib/chef-rundeck.rb index c2eba2c..efc86e9 100644 --- a/lib/chef-rundeck.rb +++ b/lib/chef-rundeck.rb @@ -224,7 +224,7 @@ def convert_results(results, hostname, custom_attributes) n['chef_environment'] = node.chef_environment n['run_list'] = node.run_list n['recipes'] = !node.run_list.nil? ? node.run_list.recipes : nil - n['roles'] = !node.run_list.nil? ? node.run_list.roles : nil + n['roles'] = !node.run_list.nil? ? node.roles : nil n['fqdn'] = node['fqdn'] n['hostname'] = node[hostname.to_sym] n['kernel_machine'] = !node['kernel'].nil? ? node['kernel']['machine'] : nil