~rogpeppe/juju-core/axwalk-lp1300889-disable-mongo-keyfile

« back to all changes in this revision

Viewing changes to state/watcher.go

  • Committer: Ian Booth
  • Date: 2013-11-25 05:03:44 UTC
  • mto: This revision was merged to the branch mainline in revision 2108.
  • Revision ID: ian.booth@canonical.com-20131125050344-nxnihk1ihiqamy2b
Tweak regexp

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
// WatchAllContainers returns a StringsWatcher that notifies of changes to the
202
202
// lifecycles of all containers on a machine.
203
203
func (m *Machine) WatchAllContainers() StringsWatcher {
204
 
        isChild := fmt.Sprintf("^%s/[a-z]*/%s$", m.doc.Id, names.NumberSnippet)
 
204
        isChild := fmt.Sprintf("^%s/%s/%s$", m.doc.Id, names.ContainerTypeSnippet, names.NumberSnippet)
205
205
        return m.containersWatcher(isChild)
206
206
}
207
207