Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion lib/hammer_cli_katello/host_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,19 @@ class ContainerfileInstallCommand < HammerCLIKatello::Command

output do
field :command, nil, Fields::Field, :hide_blank => true
field :message, _("Message"), Fields::Field, :hide_blank => true
end

def execute
response = send_request
package_count = response['packageCount'] || 0

if package_count.zero?
output.print_error _("No transient packages found")
HammerCLI::EX_NOT_FOUND
else
print_data(response)
HammerCLI::EX_OK
end
end

build_options
Expand Down