Fix variables

Signed-off-by: Sebastien Plisson <sebastien.plisson@gmail.com>
pull/5024/head
Sebastien Plisson 7 years ago
parent dbfb4a7b40
commit 4bdcb6d2fb

@ -326,13 +326,14 @@ func (i *installCmd) run() error {
// If this is a dry run, we can't display status. // If this is a dry run, we can't display status.
if i.dryRun { if i.dryRun {
// This is special casing to avoid breaking backward compatibility: // This is special casing to avoid breaking backward compatibility:
if res.Release.Info.Description != "Dry run complete" { if resp.Release.Info.Description != "Dry run complete" {
fmt.Fprintf(os.Stdout, "WARNING: %s\n", res.Release.Info.Description) fmt.Fprintf(os.Stdout, "WARNING: %s\n", resp.Release.Info.Description)
} }
return nil return nil
} }
// Print the status like status command does // Print the status like status command does
rel := resp.GetRelease()
status, err := i.client.ReleaseStatus(rel.Name) status, err := i.client.ReleaseStatus(rel.Name)
if err != nil { if err != nil {
return prettyError(err) return prettyError(err)

@ -94,7 +94,7 @@ func newRollbackCmd(c helm.Interface, out io.Writer) *cobra.Command {
} }
func (r *rollbackCmd) run() error { func (r *rollbackCmd) run() error {
_, err := r.client.RollbackRelease( resp, err := r.client.RollbackRelease(
r.name, r.name,
helm.RollbackDryRun(r.dryRun), helm.RollbackDryRun(r.dryRun),
helm.RollbackRecreate(r.recreate), helm.RollbackRecreate(r.recreate),
@ -121,7 +121,7 @@ func (r *rollbackCmd) run() error {
printRelease(r.out, rel) printRelease(r.out, rel)
} }
} }
if err != nil { if err != nil {
return prettyError(err) return prettyError(err)
} }

Loading…
Cancel
Save