Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #27997 - Add description field to templates #449

Merged
merged 1 commit into from Oct 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/hammer_cli_foreman/partition_table.rb
Expand Up @@ -18,6 +18,7 @@ class ListCommand < HammerCLIForeman::ListCommand

class InfoCommand < HammerCLIForeman::InfoCommand
output ListCommand.output_definition do
field :description, _('Description'), Fields::Text
field :locked, _("Locked"), Fields::Boolean
HammerCLIForeman::References.operating_systems(self)
HammerCLIForeman::References.timestamps(self)
Expand Down
1 change: 1 addition & 0 deletions lib/hammer_cli_foreman/report_template.rb
Expand Up @@ -14,6 +14,7 @@ class ListCommand < HammerCLIForeman::ListCommand

class InfoCommand < HammerCLIForeman::InfoCommand
output ListCommand.output_definition do
field :description, _('Description'), Fields::Text
field :locked, _("Locked"), Fields::Boolean
field :default, _("Default"), Fields::Boolean
HammerCLIForeman::References.timestamps(self)
Expand Down
1 change: 1 addition & 0 deletions lib/hammer_cli_foreman/template.rb
Expand Up @@ -52,6 +52,7 @@ def extend_data(tpl)
class InfoCommand < HammerCLIForeman::InfoCommand

output ListCommand.output_definition do
field :description, _('Description'), Fields::Text
field :locked, _("Locked"), Fields::Boolean
HammerCLIForeman::References.operating_systems(self)
HammerCLIForeman::References.taxonomies(self)
Expand Down