~openstack-charmers/charms/trusty/neutron-gateway/0mq

« back to all changes in this revision

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

  • Committer: james.page at ubuntu
  • Date: 2014-07-31 08:17:28 UTC
  • mfrom: (57.1.1 quantum-gateway)
  • Revision ID: james.page@ubuntu.com-20140731081728-jf9eo43fjiq3bqks
[coreycb,r=james-page] Resync charm-helpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
 
6
6
class OpenStackAmuletDeployment(AmuletDeployment):
7
 
    """This class inherits from AmuletDeployment and has additional support
8
 
       that is specifically for use by OpenStack charms."""
 
7
    """OpenStack amulet deployment.
 
8
 
 
9
       This class inherits from AmuletDeployment and has additional support
 
10
       that is specifically for use by OpenStack charms.
 
11
       """
9
12
 
10
13
    def __init__(self, series=None, openstack=None, source=None):
11
14
        """Initialize the deployment environment."""
40
43
            self.d.configure(service, config)
41
44
 
42
45
    def _get_openstack_release(self):
43
 
        """Return an integer representing the enum value of the openstack
44
 
           release."""
45
 
        self.precise_essex, self.precise_folsom, self.precise_grizzly, \
46
 
            self.precise_havana, self.precise_icehouse, \
47
 
            self.trusty_icehouse = range(6)
 
46
        """Get openstack release.
 
47
 
 
48
           Return an integer representing the enum value of the openstack
 
49
           release.
 
50
           """
 
51
        (self.precise_essex, self.precise_folsom, self.precise_grizzly,
 
52
         self.precise_havana, self.precise_icehouse,
 
53
         self.trusty_icehouse) = range(6)
48
54
        releases = {
49
55
            ('precise', None): self.precise_essex,
50
56
            ('precise', 'cloud:precise-folsom'): self.precise_folsom,