~james-page/ubuntu/wily/juju-core/mir-fixes

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/cmd/plugins/local/main.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-03-28 08:58:42 UTC
  • mfrom: (1.1.21)
  • Revision ID: package-import@ubuntu.com-20140328085842-cyzrgc120bdfxwj0
Tags: 1.17.7-0ubuntu1
* New upstream point release, including fixes for:
  - no debug log with all providers on Ubuntu 14.04 (LP: #1294776).
* d/control: Add cpu-checker dependency to juju-local (LP: #1297077).

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
// Main registers subcommands for the juju-local executable.
39
39
func Main(args []string) {
 
40
        ctx, err := cmd.DefaultContext()
 
41
        if err != nil {
 
42
                logger.Debugf("error: %v\n", err)
 
43
                os.Exit(2)
 
44
        }
40
45
        plugin := jujuLocalPlugin()
41
 
        os.Exit(cmd.Main(plugin, cmd.DefaultContext(), args[1:]))
 
46
        os.Exit(cmd.Main(plugin, ctx, args[1:]))
42
47
}
43
48
 
44
49
var checkIfRoot = func() bool {