Skip to content

Commit 77cbcd8

Browse files
pondrejkadamruzicka
authored andcommitted
Fixes #39013 - add the locked parameter to job info
1 parent a419f9e commit 77cbcd8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lib/hammer_cli_foreman_remote_execution/job_template.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class InfoCommand < HammerCLIForeman::InfoCommand
2525
field :description, _('Description'), Fields::Text
2626
field :cloned_from_id, _("Cloned from id"), nil, :hide_blank => true
2727
field :template_inputs, _('Inputs')
28+
field :locked, _('Locked')
2829
HammerCLIForeman::References.taxonomies(self)
2930
end
3031

test/unit/job_template_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
describe 'output' do
4040
with_params ['--id=1'] do
41-
it_should_print_columns ['ID', 'Name', 'Job Category', 'Provider', 'Type']
41+
it_should_print_columns ['ID', 'Name', 'Job Category', 'Provider', 'Type', 'Locked']
4242
end
4343
end
4444
end

0 commit comments

Comments
 (0)