Skip to content
Snippets Groups Projects
Commit abbbf546 authored by Tim Kreuzer's avatar Tim Kreuzer
Browse files

forward unicore update if spawner has currently no start_id

parent 7a79750a
Branches
Tags
No related merge requests found
...@@ -25,7 +25,8 @@ class SpawnEventsUnicoreAPIHandler(APIHandler): ...@@ -25,7 +25,8 @@ class SpawnEventsUnicoreAPIHandler(APIHandler):
spawner = user.spawners[server_name] spawner = user.spawners[server_name]
if spawner.start_id != start_id: if spawner.start_id and spawner.start_id != start_id:
# If the spawner has currently a start_id and it's different, then we don't forward the given update
self.log.warning( self.log.warning(
f"{spawner._log_name} - Spawner unique start id ({spawner.start_id}) does not match given id ({start_id}). Do not update Spawner" f"{spawner._log_name} - Spawner unique start id ({spawner.start_id}) does not match given id ({start_id}). Do not update Spawner"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment