~go-bot/juju-core/trunk

« back to all changes in this revision

Viewing changes to cmd/builddb/main.go

  • Committer: Tarmac
  • Author(s): Frank Mueller
  • Date: 2013-09-27 15:54:12 UTC
  • mfrom: (1880.1.8 juju-core)
  • Revision ID: tarmac-20130927155412-7jg4vd1xuikq4umy
[r=themue],[bug=1224568] uniter: add hook error status data

With this CL information about a failing hook and,
if possible, the relation id and the remote unit are
written into the status data of the status doc.

https://codereview.appspot.com/14030043/

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
        logger.Infof("Waiting for unit to reach %q status...", params.StatusStarted)
60
60
        unit := units[0]
61
 
        last, info, err := unit.Status()
 
61
        last, info, _, err := unit.Status()
62
62
        if err != nil {
63
63
                return err
64
64
        }
68
68
                if err := unit.Refresh(); err != nil {
69
69
                        return err
70
70
                }
71
 
                status, info, err := unit.Status()
 
71
                status, info, _, err := unit.Status()
72
72
                if err != nil {
73
73
                        return err
74
74
                }