1
Description: Do not restrict install to be trusty
2
Author: Thomas Goirand <zigo@debian.org>
4
Last-Update: 2016-02-25
6
--- fuel-agent-7.0+2016.01.29.git.99dc8a2be7+dfsg1.orig/fuel_agent/drivers/nailgun.py
7
+++ fuel-agent-7.0+2016.01.29.git.99dc8a2be7+dfsg1/fuel_agent/drivers/nailgun.py
8
@@ -747,11 +747,6 @@ class NailgunBuildImage(BaseDataDriver):
11
def parse_operating_system(self):
12
- if self.data.get('codename').lower() != 'trusty':
13
- raise errors.WrongInputDataError(
14
- 'Currently, only Ubuntu Trusty is supported, given '
15
- 'codename is {0}'.format(self.data.get('codename')))
17
packages = self.data.get('packages', self.DEFAULT_TRUSTY_PACKAGES)
20
diff --git a/fuel_agent/tests/test_nailgun_build_image.py b/fuel_agent/tests/test_nailgun_build_image.py
21
index 826e6a9..0aca818 100644
22
--- a/fuel_agent/tests/test_nailgun_build_image.py
23
+++ b/fuel_agent/tests/test_nailgun_build_image.py
24
@@ -108,13 +108,6 @@ class TestNailgunBuildImage(unittest2.TestCase):
25
self.assertEqual(NailgunBuildImage.DEFAULT_TRUSTY_PACKAGES,
26
DEFAULT_TRUSTY_PACKAGES)
28
- @mock.patch.object(NailgunBuildImage, 'parse_schemes')
29
- def test_parse_operating_system_error_bad_codename(self,
30
- mock_parse_schemes):
31
- with self.assertRaises(errors.WrongInputDataError):
32
- data = {'codename': 'not-trusty'}
33
- NailgunBuildImage(data)
35
@mock.patch('fuel_agent.objects.RepoProxies')
36
@mock.patch('fuel_agent.objects.Ubuntu')
37
@mock.patch.object(NailgunBuildImage, 'parse_schemes')