Skip to content

Commit

Permalink
Fixes #27729 - Upload rpm without --content-type (#690)
Browse files Browse the repository at this point in the history
hammer repository upload-content --id=245 --path ./t.rpm
This command failed with
`undefined local variable or method `option_content_type`

This commit addresses this issue

(cherry picked from commit d4a88c8)
  • Loading branch information
parthaa authored and chris1984 committed Aug 29, 2019
1 parent 54fe938 commit 5040606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hammer_cli_katello/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,9 @@ def import_uploads(uploads, opts = {})
params = {:id => get_identifier,
:uploads => uploads,
publish_repository: publish_repository,
sync_capsule: sync_capsule,
content_type: option_content_type
sync_capsule: sync_capsule
}
params[:content_type] = options["option_content_type"] if options["option_content_type"]
resource.call(:import_uploads, params)
end

Expand Down

0 comments on commit 5040606

Please sign in to comment.