~jamesbeedy/charms/trusty/nova-compute/next

« back to all changes in this revision

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

  • Committer: Christopher Glass
  • Date: 2015-09-18 10:02:00 UTC
  • mfrom: (157.1.4 nova-compute)
  • Revision ID: christopher.glass@canonical.com-20150918100200-68grb3jg125zpp94
Merge lp:~gnuoy/charms/trusty/nova-compute/1496746 [a=gnuoy] [r=tribaal]

Sync charm helpers to make sure hugepages have a reasonable value.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        else:
59
59
            base_series = self.current_next
60
60
 
61
 
        if self.stable:
62
 
            for svc in other_services:
63
 
                if svc['name'] in force_series_current:
64
 
                    base_series = self.current_next
65
 
 
 
61
        for svc in other_services:
 
62
            if svc['name'] in force_series_current:
 
63
                base_series = self.current_next
 
64
            # If a location has been explicitly set, use it
 
65
            if svc.get('location'):
 
66
                continue
 
67
            if self.stable:
66
68
                temp = 'lp:charms/{}/{}'
67
69
                svc['location'] = temp.format(base_series,
68
70
                                              svc['name'])
69
 
        else:
70
 
            for svc in other_services:
71
 
                if svc['name'] in force_series_current:
72
 
                    base_series = self.current_next
73
 
 
 
71
            else:
74
72
                if svc['name'] in base_charms:
75
73
                    temp = 'lp:charms/{}/{}'
76
74
                    svc['location'] = temp.format(base_series,
79
77
                    temp = 'lp:~openstack-charmers/charms/{}/{}/next'
80
78
                    svc['location'] = temp.format(self.current_next,
81
79
                                                  svc['name'])
 
80
 
82
81
        return other_services
83
82
 
84
83
    def _add_services(self, this_service, other_services):