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

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/worker/machiner/machiner.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:
99
99
        }
100
100
 
101
101
        // Mark the machine as started and log it.
102
 
        if err := m.SetStatus(status.StatusStarted, "", nil); err != nil {
 
102
        if err := m.SetStatus(status.Started, "", nil); err != nil {
103
103
                return nil, errors.Annotatef(err, "%s failed to set status started", mr.config.Tag)
104
104
        }
105
105
        logger.Infof("%q started", mr.config.Tag)
173
173
                return nil
174
174
        }
175
175
        logger.Debugf("%q is now %s", mr.config.Tag, life)
176
 
        if err := mr.machine.SetStatus(status.StatusStopped, "", nil); err != nil {
 
176
        if err := mr.machine.SetStatus(status.Stopped, "", nil); err != nil {
177
177
                return errors.Annotatef(err, "%s failed to set status stopped", mr.config.Tag)
178
178
        }
179
179