101
102
(self.precise_essex, self.precise_folsom, self.precise_grizzly,
102
103
self.precise_havana, self.precise_icehouse,
103
self.trusty_icehouse) = range(6)
104
self.trusty_icehouse, self.trusty_juno, self.trusty_kilo) = range(8)
105
106
('precise', None): self.precise_essex,
106
107
('precise', 'cloud:precise-folsom'): self.precise_folsom,
107
108
('precise', 'cloud:precise-grizzly'): self.precise_grizzly,
108
109
('precise', 'cloud:precise-havana'): self.precise_havana,
109
110
('precise', 'cloud:precise-icehouse'): self.precise_icehouse,
110
('trusty', None): self.trusty_icehouse}
111
('trusty', None): self.trusty_icehouse,
112
('trusty', 'cloud:trusty-juno'): self.trusty_juno,
113
('trusty', 'cloud:trusty-kilo'): self.trusty_kilo}
111
114
return releases[(self.series, self.openstack)]
116
def _get_openstack_release_string(self):
117
"""Get openstack release string.
119
Return a string representing the openstack release.
121
releases = OrderedDict([
122
('precise', 'essex'),
123
('quantal', 'folsom'),
124
('raring', 'grizzly'),
126
('trusty', 'icehouse'),
131
os_origin = self.openstack.split(':')[1]
132
return os_origin.split('%s-' % self.series)[1].split('/')[0]
134
return releases[self.series]