~hopem/charms/trusty/keystone/fix-ssl-disable

« back to all changes in this revision

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

  • Committer: Edward Hope-Morley
  • Date: 2015-02-16 13:35:14 UTC
  • mfrom: (117.1.3 keystone.strbools)
  • Revision ID: edward.hope-morley@canonical.com-20150216133514-byi9r8zk30a4ffz2
[hopem,r=gnuoy]

Synced charm-helpers to get core.strutils and replaced
str-to-bool logic with bool_from_string()

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