~fwereade/pyjuju/preflight-constraints

« back to all changes in this revision

Viewing changes to juju/providers/dummy.py

  • Committer: William Reade
  • Date: 2012-04-04 15:39:01 UTC
  • mfrom: (494.1.18 trunk)
  • Revision ID: fwereade@gmail.com-20120404153901-aewisetre0zwgcus
finished tests, removed inappropriate preflighting

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
 
13
13
from juju.machine import ProviderMachine
14
 
from juju.machine.constraints import ConstraintSet
 
14
from juju.machine.tests.test_constraints import dummy_cs
15
15
from juju.state.placement import UNASSIGNED_POLICY
16
16
from juju.providers.common.files import FileStorage
17
17
 
46
46
        return self.config.get("placement", UNASSIGNED_POLICY)
47
47
 
48
48
    def get_constraint_set(self):
49
 
        cs = ConstraintSet(self.provider_type)
50
 
        cs.register_generics([])
51
 
        return succeed(cs)
 
49
        return succeed(dummy_cs)
52
50
 
53
51
    @property
54
52
    def provider_type(self):