mirror of
https://github.com/lubuntu-team/ci-tooling.git
synced 2025-04-14 04:31:09 +00:00
Slightly clean that up.
This commit is contained in:
parent
bf8edaaf9d
commit
5fb09fda6d
@ -131,13 +131,13 @@ class Generator:
|
||||
template += text
|
||||
template = Template(template)
|
||||
|
||||
if data is not None and job_type != "release-mgmt":
|
||||
if data is not None:
|
||||
url = data["packaging_url"]
|
||||
u_branch = data["packaging_branch_unstable"]
|
||||
s_branch = data["packaging_branch_stable"]
|
||||
u_upload_target = data["upload_target_unstable"]
|
||||
s_upload_target = data["upload_target_stable"]
|
||||
else:
|
||||
elif job_type != "release-mgmt":
|
||||
raise AttributeError("Data cannot be empty, cannot parse job data.")
|
||||
|
||||
if job_type.startswith("package"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user