~therve/pyjuju/subordinates-relation-check

« back to all changes in this revision

Viewing changes to juju/providers/openstack/tests/__init__.py

Support openstack scheduler hints as a constraint [r=jimbaker]

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
    def setup_constraints(self):
49
49
        self.constraint_set = ConstraintSet(self.provider_type)
 
50
        self.constraint_set.register("os-scheduler-hints",
 
51
            converter=json.loads)
50
52
        self.constraint_set.register_generics(
51
53
            [f['name'] for f in self.default_flavors])
52
54