Skip to content

Commit

Permalink
fix copy and paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 23, 2017
1 parent 0feef84 commit a3daed0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/installation/widgets/system_role.rb
Expand Up @@ -138,11 +138,11 @@ def roles_description
end

def adapt_services
services = raw_roles.find { |r| r["id"] == role_id }["services"]
services = raw_roles.find { |r| r["id"] == value }["services"]
services ||= []

to_enable = services.map { |s| s["name"] }
log.info "enable for #{role_id} these services: #{to_enable.inspect}"
log.info "enable for #{value} these services: #{to_enable.inspect}"

Installation::Services.enabled = to_enable
end
Expand Down

0 comments on commit a3daed0

Please sign in to comment.