Skip to content

Commit

Permalink
Refs #31094 - drop config_groups from Host(group) API
Browse files Browse the repository at this point in the history
Drops config_groups node from Host and Hostgroup API responses.

Extracted in theforeman/foreman_puppet#66
  • Loading branch information
ezr-ondrej committed Apr 14, 2021
1 parent a8a0582 commit bfa3190
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions app/views/api/v2/hostgroups/show.json.rabl
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ node do |hostgroup|
{ :all_puppetclasses => partial("api/v2/puppetclasses/base", :object => hostgroup.all_puppetclasses) }
end

child :config_groups do
extends "api/v2/config_groups/main"
end

root_object.facet_definitions.each do |definition|
next unless definition.api_single_view
node(false, if: ->(hostgroup) { definition.facet_record_for(hostgroup) }) do |hostgroup|
Expand Down
4 changes: 0 additions & 4 deletions app/views/api/v2/hosts/show.json.rabl
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ node do |host|
{ :all_puppetclasses => partial("api/v2/puppetclasses/base", :object => host.all_puppetclasses) }
end

child :config_groups do
extends "api/v2/config_groups/main"
end

root_object.facet_definitions.each do |definition|
next unless definition.api_single_view
node(false, if: ->(host) { definition.facet_record_for(host) }) do |host|
Expand Down

0 comments on commit bfa3190

Please sign in to comment.