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

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/resource/cmd/list_charm_resources.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:
116
116
        if len(resources) != 1 {
117
117
                return errors.New("got bad data from charm store")
118
118
        }
 
119
        res := resources[0]
 
120
 
 
121
        if len(res) == 0 && c.out.Name() == "tabular" {
 
122
                ctx.Infof("No resources to display.")
 
123
                return nil
 
124
        }
119
125
 
120
126
        // Note that we do not worry about c.CompatVersion
121
127
        // for show-charm-resources...