mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Allow computes to be dynamically or manually allocated
This commit is contained in:
1 parent
c290d75eec
commit
21049d73a5
4 files changed
+9
-6
No files matched your search
@@ -495,7 +495,8 @@ class Controller:
|
||||
"""
|
||||
|
||||
if compute_id is None:
|
||||
computes = list(self._computes.values())
|
||||
# get all connected computes
|
||||
computes = [compute for compute in self._computes.values() if compute.connected is True]
|
||||
if len(computes) == 1:
|
||||
# return the only available compute
|
||||
return computes[0]
|
||||
|
||||
Reference in new issue
Block a user