aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-09-23 14:34:45 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-09-23 12:36:08 +0000
commitc02b0727e98f4346333adc108753154c8d382408 (patch)
tree27100a42f9883afe67777ce227946c8d69f30049 /utils
parent094c8ee7d20e8b89f2c6cb0fa70330c468bf94b7 (diff)
Simplify uniqid
Just use a random number. Fixes: Traceback (most recent call last): File /w/workspace/ci-apps-agl-service-bluetooth-verify-master-CIBT-x86-64/repoclone/releng-scripts/utils/create-jobs.py, line 126, in <module> main() File /w/workspace/ci-apps-agl-service-bluetooth-verify-master-CIBT-x86-64/repoclone/releng-scripts/utils/create-jobs.py, line 110, in main app_changeid=args.app_changeid, app_patchset=args.app_patchset, app_branch=args.app_branch) File /w/workspace/ci-apps-agl-service-bluetooth-verify-master-CIBT-x86-64/repoclone/releng-scripts/utils/agljobtemplate.py, line 113, in render_job job[uniqid] = AGL-%s-%s-%s-%d % (machine, branch, version, random.randint(1, 999999)) Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: Ifef2d5831b37e69bef30f1d32730736dfafc5a57 (cherry picked from commit 6445b9a054c06648d6e09762749ee48b00e6e936)
Diffstat (limited to 'utils')
-rw-r--r--utils/agljobtemplate.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index a375da1..1003823 100644
--- a/utils/agljobtemplate.py
+++ b/utils/agljobtemplate.py
@@ -106,11 +106,7 @@ class Agljobtemplate(object):
job['priority'] = priority
job['build_type'] = build_type
job['image_type'] = "AGL-%s" % build_type
-
- if patchset != None:
- job["uniqid"] = "AGL-%s-%s-%s-%d" % (machine, changeid, patchset, random.randint(1, 999999))
- else:
- job["uniqid"] = "AGL-%s-%s-%s-%d" % (machine, branch, version, random.randint(1, 999999))
+ job["uniqid"] = "AGL-%s-%d" % (machine, random.randint(1, 999999))
defaults, infra = parse_cfg_file(self._template_path, 'default.cfg', build_type)