Skip to content

Commit

Permalink
Fixes #15030 - correct ISO text on repo sync text (Katello#6042)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlsherrill committed May 12, 2016
1 parent 707ce19 commit c7d389c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Actions
module Pulp
module Repository
module Presenters
class IsoPresenter < AbstractSyncPresenter
class FilePresenter < AbstractSyncPresenter
def progress
total_bytes == 0 ? 0.01 : finished_bytes.to_f / total_bytes
end
Expand All @@ -12,7 +12,7 @@ def progress
def humanized_details
ret = []
ret << _("Cancelled.") if cancelled?
ret << _("New ISOs: %s") % num_isos
ret << _("New Files: %s") % num_isos
ret.join("\n")
end

Expand Down
2 changes: 1 addition & 1 deletion app/lib/actions/pulp/repository/sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def presenter
elsif repo.try(:yum?)
Presenters::YumPresenter.new(self)
elsif repo.try(:file?)
Presenters::IsoPresenter.new(self)
Presenters::FilePresenter.new(self)
elsif repo.try(:docker?)
Presenters::DockerPresenter.new(self)
elsif repo.try(:ostree?)
Expand Down

0 comments on commit c7d389c

Please sign in to comment.