Permalink
Browse files

fixed available roles check

  • Loading branch information...
1 parent 497e2ca commit ed0a35875409496e13a3b1f7830ca84dc0d55ac3 @martinotten martinotten committed Dec 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/default/hosts.cfg.erb
@@ -6,7 +6,7 @@ define host {
use server
address <%= n['ipaddress'] %>
host_name <%= n['hostname'] %>
-<% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
+<% if n.roles.nil? || n.roles.length == 0 -%>
hostgroups all
<% else -%>
hostgroups <%= n.roles.to_a.join(",") %>

0 comments on commit ed0a358

Please sign in to comment.