summaryrefslogtreecommitdiffstats
path: root/utils/job-prereq.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/job-prereq.py')
-rwxr-xr-xutils/job-prereq.py8
1 files changed, 4 insertions, 4 deletions
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()