Add UUID support for SYSLINUX
This commit is contained in:
parent
a2b36e7299
commit
69b7b003de
4
main.py
4
main.py
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user