From b516553ebf08c2aec03b840d618fafd548656706 Mon Sep 17 00:00:00 2001 From: Jerome Brunet Date: Thu, 7 Sep 2017 10:41:02 +0200 Subject: rootfs_type: add default rootfs type for each device Add a default rootfs type for each device. the type can still be overridden from the command line. The 'boot' parameter is no longer required with this change Change-Id: I666287d83652bcd81d9619eee75bf9be292d936a Signed-off-by: Jerome Brunet Signed-off-by: Kevin Hilman --- utils/agljobtemplate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'utils/agljobtemplate.py') diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py index 749d4bf..2b80127 100644 --- a/utils/agljobtemplate.py +++ b/utils/agljobtemplate.py @@ -45,7 +45,7 @@ class Agljobtemplate(object): def rfs_types(self): return self.RFS_TYPE - def render_job(self, url, machine, job_name="AGL-short-smoke", priority="medium", tests=[], rfs_type="nbd"): + def render_job(self, url, machine, job_name="AGL-short-smoke", priority="medium", tests=[], rfs_type=None): test_templates = [] if machine not in self.machines: @@ -64,7 +64,9 @@ class Agljobtemplate(object): job['priority'] = priority job['urlbase'] = url job['test_templates'] = test_templates - job['rootfs_type'] = rfs_type + + if rfs_type is not None: + job['rootfs_type'] = rfs_type env = jinja2.Environment(loader=jinja2.FileSystemLoader(self._template_path)) env.filters['get_extension'] = get_extension -- cgit 1.2.3-korg