Make data an optional argument, and only try to pull values from it if it is passed.

master
Simon Quigley 6 years ago
parent 685228adfc
commit 4e384845a2

@ -110,7 +110,7 @@ class Generator:
return server return server
def load_config(self, job_type, data): def load_config(self, job_type, data=None):
"""Return a template that is a result of loading the data """Return a template that is a result of loading the data
This makes it easier to standardize several types of jobs This makes it easier to standardize several types of jobs
@ -124,6 +124,7 @@ class Generator:
template += text template += text
template = Template(template) template = Template(template)
if data:
url = data["packaging_url"] url = data["packaging_url"]
u_branch = data["packaging_branch_unstable"] u_branch = data["packaging_branch_unstable"]
s_branch = data["packaging_branch_stable"] s_branch = data["packaging_branch_stable"]

Loading…
Cancel
Save