~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/config/fixture.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-27 18:36:34 UTC
  • mfrom: (13023.9.12 rabbit-layer)
  • Revision ID: launchpad@pqm.canonical.com-20110627183634-96p3qvorpmvutpic
[r=jtv][no-qa] Introducing RabbitMQLayer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        """Add sectioncontent to the lazy config."""
44
44
        with open(self.absroot + '/launchpad-lazr.conf', 'ab') as out:
45
45
            out.write(sectioncontent)
 
46
        # Trigger a refresh if and only if the config is in use at the moment
 
47
        # in order to make these new values available.
 
48
        if config.instance_name == self.instance_name:
 
49
            config._invalidateConfig()
46
50
 
47
51
    def setUp(self):
48
52
        super(ConfigFixture, self).setUp()