mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
fix(typing): resolve mypy errors in controller.compute
This commit is contained in:
2 files changed
+7
-8
No files matched your search
@@ -216,6 +216,13 @@ class Compute:
|
||||
"""
|
||||
return self._host
|
||||
|
||||
@host.setter
|
||||
def host(self, host):
|
||||
self._host = host
|
||||
self._host_ip_cache = None # invalidate; re-resolve on next access
|
||||
if self._console_host is None:
|
||||
self._console_host = host
|
||||
|
||||
@property
|
||||
def host_ip(self):
|
||||
"""
|
||||
@@ -228,13 +235,6 @@ class Compute:
|
||||
self._host_ip_cache = "0.0.0.0"
|
||||
return self._host_ip_cache
|
||||
|
||||
@host.setter
|
||||
def host(self, host):
|
||||
self._host = host
|
||||
self._host_ip_cache = None # invalidate; re-resolve on next access
|
||||
if self._console_host is None:
|
||||
self._console_host = host
|
||||
|
||||
@property
|
||||
def console_host(self):
|
||||
return self._console_host
|
||||
|
||||
Reference in new issue
Block a user