From b5bcfa146da2baf76fd466a7130a08465e9331ba Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Wed, 3 Jun 2020 15:23:53 +0200 Subject: SPEC-3408: convert releng-scripts to python3 This patch convert releng-scripts to python3. While at it, let's creating requirements.txt for specifying depencies yaml and jinja2. Change-Id: Iba7b45b10fd7e1336bf1e4a73e0e6275392e373c Bug-AGL: SPEC-3408 Signed-off-by: Corentin LABBE --- utils/job-prereq.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils/job-prereq.py') diff --git a/utils/job-prereq.py b/utils/job-prereq.py index 08531cd..213a84a 100755 --- a/utils/job-prereq.py +++ b/utils/job-prereq.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import agljobtemplate @@ -67,15 +67,15 @@ def main(): if args.machine == "qemux86-64" or args.machine == "qemuarm" or args.machine == "qemuarm64": for key in FILE_MAP_QEMU: if getattr(args, key): - print job_yaml["actions"][0]["deploy"]["images"][FILE_MAP_QEMU[key]].get("url").split('/')[-1] + print(job_yaml["actions"][0]["deploy"]["images"][FILE_MAP_QEMU[key]].get("url").split('/')[-1]) elif args.machine == "intel-corei7-64" or args.machine == "upsquare": for key in FILE_MAP_X86: if getattr(args, key): - print job_yaml["actions"][0]["deploy"][key].get("url").split('/')[-1] + print(job_yaml["actions"][0]["deploy"][key].get("url").split('/')[-1]) else: for key in FILE_MAP: if getattr(args, key): - print job_yaml["actions"][0]["deploy"][key].get("url").split('/')[-1] + print(job_yaml["actions"][0]["deploy"][key].get("url").split('/')[-1]) if __name__ == '__main__': main() -- cgit 1.2.3-korg