~freyes/charms/trusty/nova-cloud-controller/single-nova-consoleauth

« back to all changes in this revision

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

  • Committer: Felipe Reyes
  • Date: 2015-03-06 15:45:22 UTC
  • mfrom: (140.1.3 nova-cloud-controller)
  • Revision ID: felipe.reyes@canonical.com-20150306154522-z00f5lfyyekd9pi8
Commit after merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        services.append(this_service)
72
72
        use_source = ['mysql', 'mongodb', 'rabbitmq-server', 'ceph',
73
73
                      'ceph-osd', 'ceph-radosgw']
 
74
        # Openstack subordinate charms do not expose an origin option as that
 
75
        # is controlled by the principle
 
76
        ignore = ['neutron-openvswitch']
74
77
 
75
78
        if self.openstack:
76
79
            for svc in services:
77
 
                if svc['name'] not in use_source:
 
80
                if svc['name'] not in use_source + ignore:
78
81
                    config = {'openstack-origin': self.openstack}
79
82
                    self.d.configure(svc['name'], config)
80
83
 
81
84
        if self.source:
82
85
            for svc in services:
83
 
                if svc['name'] in use_source:
 
86
                if svc['name'] in use_source and svc['name'] not in ignore:
84
87
                    config = {'source': self.source}
85
88
                    self.d.configure(svc['name'], config)
86
89