~openstack-charmers-archive/charms/trusty/neutron-gateway/trunk

« back to all changes in this revision

Viewing changes to tests/charmhelpers/contrib/amulet/deployment.py

  • Committer: James Page
  • Date: 2015-10-22 13:23:58 UTC
  • Revision ID: james.page@ubuntu.com-20151022132358-qin1nvlnqn4aezaz
Tags: 15.10
15.10 Charm release

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        if 'units' not in this_service:
52
52
            this_service['units'] = 1
53
53
 
54
 
        self.d.add(this_service['name'], units=this_service['units'])
 
54
        self.d.add(this_service['name'], units=this_service['units'],
 
55
                   constraints=this_service.get('constraints'))
55
56
 
56
57
        for svc in other_services:
57
58
            if 'location' in svc:
64
65
            if 'units' not in svc:
65
66
                svc['units'] = 1
66
67
 
67
 
            self.d.add(svc['name'], charm=branch_location, units=svc['units'])
 
68
            self.d.add(svc['name'], charm=branch_location, units=svc['units'],
 
69
                       constraints=svc.get('constraints'))
68
70
 
69
71
    def _add_relations(self, relations):
70
72
        """Add all of the relations for the services."""