~stub/charms/precise/postgresql/syslog

« back to all changes in this revision

Viewing changes to testing/jujufixture.py

  • Committer: Stuart Bishop
  • Date: 2014-05-07 04:50:17 UTC
  • mfrom: (90.1.53 fix-failover-tests)
  • Revision ID: stuart.bishop@canonical.com-20140507045017-x46jsqw3yp0qkmp3
Merged fix-failover-tests into syslog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
            and m.get('life', None) not in ('dead', 'dying')
95
95
            and m.get('agent-state', 'pending') in ('started', 'ready'))
96
96
        for service in self.status.get('services', {}).values():
97
 
            for unit in service.get('units', []):
 
97
            for unit in service.get('units', {}).values():
98
98
                if 'machine' in unit:
99
 
                    self._free_machines.remove(int(unit['machine']))
 
99
                    self._free_machines.discard(int(unit['machine']))
100
100
 
101
101
        return self.status
102
102