mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
refactor(gns3server,tests): StrEnum, ASYNC109 and others
This commit is contained in:
54 files changed
+195
-165
No files matched your search
@@ -43,7 +43,7 @@ class VirtualBoxGNS3VM(BaseGNS3VM):
|
||||
self._system_properties = {}
|
||||
self._virtualbox_manager = VirtualBox()
|
||||
|
||||
async def _execute(self, subcommand, args, timeout=60):
|
||||
async def _execute(self, subcommand, args, timeout=60): # noqa: ASYNC109 - operation-specific timeout is intentional
|
||||
|
||||
try:
|
||||
result = await self._virtualbox_manager.execute(subcommand, args, timeout)
|
||||
|
||||
@@ -41,7 +41,7 @@ class VMwareGNS3VM(BaseGNS3VM):
|
||||
def vmx_path(self):
|
||||
return self._vmx_path
|
||||
|
||||
async def _execute(self, subcommand, args, timeout=60, log_level=logging.INFO):
|
||||
async def _execute(self, subcommand, args, timeout=60, log_level=logging.INFO): # noqa: ASYNC109 - operation-specific timeout is intentional
|
||||
|
||||
try:
|
||||
result = await self._vmware_manager.execute(subcommand, args, timeout, log_level=log_level)
|
||||
|
||||
Reference in new issue
Block a user