mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
refactor(datasource): user data names what its template gets
The cloud-init user data rendered locals(); it now passes the one value its template reads, the VM's keys, as the job that writes a seed does.
This commit is contained in:
parent
3dbd4c0316
commit
3c9b34ae48
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ def os_userdata(request, version):
|
|||
# quoted, so a comment such as "it's: mine" stays one YAML string
|
||||
instance_keys = [json.dumps(key) for key in instance_keys]
|
||||
|
||||
return render(request, "user_data", locals())
|
||||
return render(request, "user_data", {"instance_keys": instance_keys})
|
||||
else:
|
||||
err = "Invalid version: %(version)s" % {"version": version}
|
||||
raise Http404(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue