~dave-cheney/juju-core/044-environs-respect-default-series

« back to all changes in this revision

Viewing changes to state/service.go

  • Committer: Dave Cheney
  • Date: 2012-11-30 01:35:02 UTC
  • mfrom: (713.2.47 juju-core)
  • Revision ID: david.cheney@canonical.com-20121130013502-x6megsp5pf55rf0a
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
352
352
        if u.doc.Service != s.doc.Name {
353
353
                return fmt.Errorf("unit is not assigned to service %q", s)
354
354
        }
355
 
        if u.doc.MachineId != nil {
 
355
        if u.doc.MachineId != "" {
356
356
                err = u.UnassignFromMachine()
357
357
                if err != nil {
358
358
                        return err