mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-25 03:12:23 +02:00
fix(typing): resolve mypy errors in compute.vpcs.vpcs_vm
This commit is contained in:
parent
a7350ae0c8
commit
2542ad4647
@ -148,7 +148,11 @@ class VPCSVM(BaseNode):
|
|||||||
vpcs_path = shutil.which(vpcs_path)
|
vpcs_path = shutil.which(vpcs_path)
|
||||||
return vpcs_path
|
return vpcs_path
|
||||||
|
|
||||||
@BaseNode.name.setter
|
@property
|
||||||
|
def name(self):
|
||||||
|
return self._name
|
||||||
|
|
||||||
|
@name.setter
|
||||||
def name(self, new_name):
|
def name(self, new_name):
|
||||||
"""
|
"""
|
||||||
Sets the name of this VPCS VM.
|
Sets the name of this VPCS VM.
|
||||||
@ -358,7 +362,11 @@ class VPCSVM(BaseNode):
|
|||||||
if self.is_running():
|
if self.is_running():
|
||||||
await self.reset_wrap_console()
|
await self.reset_wrap_console()
|
||||||
|
|
||||||
@BaseNode.console_type.setter
|
@property
|
||||||
|
def console_type(self):
|
||||||
|
return self._console_type
|
||||||
|
|
||||||
|
@console_type.setter
|
||||||
def console_type(self, new_console_type):
|
def console_type(self, new_console_type):
|
||||||
"""
|
"""
|
||||||
Sets the console type for this VPCS VM.
|
Sets the console type for this VPCS VM.
|
||||||
|
|||||||
@ -356,7 +356,6 @@ module = [
|
|||||||
"gns3server.api.routes.controller.templates", # 10
|
"gns3server.api.routes.controller.templates", # 10
|
||||||
"gns3server.api.routes.controller.users", # 14
|
"gns3server.api.routes.controller.users", # 14
|
||||||
"gns3server.compute.virtualbox.virtualbox_vm", # 1
|
"gns3server.compute.virtualbox.virtualbox_vm", # 1
|
||||||
"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.project", # 2
|
"gns3server.controller.project", # 2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user