Add UUID support for SYSLINUX
buildbot/multibuild_parent Build done. Details
buildbot/travis_bionic Build done. Details

This commit is contained in:
Peter Šurda 2022-06-21 09:21:13 +08:00
parent a2b36e7299
commit 69b7b003de
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95
1 changed files with 3 additions and 1 deletions

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)
user_data = request.get_user_data()