mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Return computer name instead of local. It's more logic when using remote controller
This commit is contained in:
1 parent
46910a183e
commit
897455d5e9
2 files changed
+9
-9
No files matched your search
@@ -17,6 +17,7 @@
|
||||
|
||||
import aiohttp
|
||||
import asyncio
|
||||
import socket
|
||||
import json
|
||||
import uuid
|
||||
import os
|
||||
@@ -163,7 +164,7 @@ class Compute:
|
||||
if name is not None:
|
||||
self._name = name
|
||||
elif self._id == "local":
|
||||
self._name = "Local"
|
||||
self._name = socket.gethostname()
|
||||
else:
|
||||
if self._user:
|
||||
user = self._user
|
||||
|
||||
Reference in new issue
Block a user