Skip to content

Commit

Permalink
Fixes #23722 - removed redundant info about OS from hostgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaikwad authored and Tomas Strachota committed Jun 20, 2018
1 parent 30bdd1f commit 58ab9e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lib/hammer_cli_foreman/hostgroup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ class ListCommand < HammerCLIForeman::ListCommand

class InfoCommand < HammerCLIForeman::InfoCommand

output ListCommand.output_definition do
output do
field :id, _("Id")
field :name, _("Name")
field :title, _("Title")
field nil, _("Puppet Environment"), Fields::SingleReference, :key => :environment
field nil, _("Model"), Fields::SingleReference, :key => :model

field :description, _("Description"), Fields::LongText, :hide_blank => true
field nil, _("Parent"), Fields::SingleReference, :key => :parent, :hide_blank => true
field nil, _("Puppet CA Proxy"), Fields::SingleReference, :key => :puppet_ca_proxy
Expand Down
2 changes: 1 addition & 1 deletion test/unit/hostgroup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
context "output" do
with_params ["--id=1"] do
it_should_print_n_records 1
it_should_print_columns ["Id", "Name", "Title", "Operating System"]
it_should_print_columns ["Id", "Name", "Title"]
it_should_print_columns ["Puppet Environment", "Puppetclasses", "Parent"]
it_should_print_columns ["Puppet CA Proxy", "Puppet Master Proxy"]
it_should_print_columns ["Parameters", "Description"]
Expand Down

0 comments on commit 58ab9e7

Please sign in to comment.