Add UUID support for SYSLINUX

This commit is contained in:
Peter Šurda 2022-06-21 09:21:13 +08:00
parent a2b36e7299
commit 69b7b003de
Signed by untrusted user: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -205,11 +205,13 @@ class CloudInitApp:
'meta_data': metadata
}}
def _user_data(self, uuid=None):
def _user_data(self, uuid=None, SYSUUID=None):
"""
Serves a static file
But can process a template if x-include-url
"""
if SYSUUID: # SYSLINUX support
uuid = SYSUUID
request = CloudInitRequest(cherrypy.request, uuid)
self._redirect_if_needed(request)
user_data = request.get_user_data()