mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-01 08:10:13 +03:00
Merge pull request #2891 from markparonyan/mypy-controller-compute
fix(typing): resolve mypy errors in controller.compute
This commit is contained in:
commit
ccee503b74
@ -216,6 +216,13 @@ class Compute:
|
|||||||
"""
|
"""
|
||||||
return self._host
|
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
|
@property
|
||||||
def host_ip(self):
|
def host_ip(self):
|
||||||
"""
|
"""
|
||||||
@ -228,13 +235,6 @@ class Compute:
|
|||||||
self._host_ip_cache = "0.0.0.0"
|
self._host_ip_cache = "0.0.0.0"
|
||||||
return self._host_ip_cache
|
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
|
@property
|
||||||
def console_host(self):
|
def console_host(self):
|
||||||
return self._console_host
|
return self._console_host
|
||||||
|
|||||||
@ -372,7 +372,6 @@ module = [
|
|||||||
"gns3server.compute.vpcs.vpcs_vm", # 2
|
"gns3server.compute.vpcs.vpcs_vm", # 2
|
||||||
"gns3server.controller.appliance", # 2
|
"gns3server.controller.appliance", # 2
|
||||||
"gns3server.controller.appliance_manager", # 5
|
"gns3server.controller.appliance_manager", # 5
|
||||||
"gns3server.controller.compute", # 2
|
|
||||||
"gns3server.controller.project", # 2
|
"gns3server.controller.project", # 2
|
||||||
"gns3server.controller.topology", # 1
|
"gns3server.controller.topology", # 1
|
||||||
"gns3server.db.models.acl", # 1
|
"gns3server.db.models.acl", # 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user