Skip to content

Commit

Permalink
Correct wrong i18n key for install status
Browse files Browse the repository at this point in the history
  • Loading branch information
marcparadise committed Apr 23, 2018
1 parent 6466ccf commit f03b699
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,25 +196,26 @@ def recipe_strategy?(cli_arguments)
# Runs the InstallChef action and renders UI updates as
# the action reports back
def install(r)
ctx = Text.status.install_chef
installer = Action::InstallChef.instance_for_target(@conn)
installer.run do |event, data|
case event
when :installing
r.update(TS.install.installing)
r.update(ctx.installing)
when :uploading
r.update(TS.install.uploading)
r.update(ctx.uploading)
when :downloading
r.update(TS.install.downloading)
r.update(ctx.downloading)
when :success
if data[0] == :already_installed
r.success(TS.install.already_present)
r.success(ctx.already_present)
elsif data[0] == :install_success
r.success(TS.install.success)
r.success(ctx.success)
end
when :error
# Message may or may not be present. First arg if it is.
msg = data.length > 0 ? data[0] : T.aborted
r.error(TS.install.failure(msg))
r.error(ctx.failure(msg))
end
end
end
Expand Down

0 comments on commit f03b699

Please sign in to comment.