Skip to content

Commit 8872d93

Browse files
authored
BUGFIX
/node add_instance did not work reliably
1 parent 487cd0d commit 8872d93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/data/impl/nodeimpl.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,10 @@ async def rename_server(self, server: Server, new_name: str):
912912
self.log.error(
913913
f"Rename request received for server {server.name} that should have gone to the master node!")
914914
return
915-
# we are doing the plugin changes, as we are the master
916-
await ServiceRegistry.get(BotService).rename_server(server, new_name)
915+
# do not rename initially created servers (they should not be there anyway)
916+
if server.name != 'n/a':
917+
# we are doing the plugin changes, as we are the master
918+
await ServiceRegistry.get(BotService).rename_server(server, new_name)
917919
# update the ServiceBus
918920
ServiceRegistry.get(ServiceBus).rename_server(server, new_name)
919921
# change the proxy name for remote servers (local ones will be renamed by ServerImpl)

0 commit comments

Comments
 (0)