~juju-qa/ubuntu/xenial/juju/2.0-rc2

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/cmd/juju/romulus/listplans/list_plans.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
                }
138
138
                output[i] = outputPlan
139
139
        }
 
140
 
 
141
        if len(output) == 0 && c.out.Name() == "tabular" {
 
142
                ctx.Infof("No plans to display.")
 
143
        }
 
144
 
140
145
        err = c.out.Write(ctx, output)
141
146
        if err != nil {
142
147
                return errors.Trace(err)