mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 22:41:12 +02:00
refactor(gns3server,tests): StrEnum, ASYNC109 and others
This commit is contained in:
54 files changed
+195
-165
No files matched your search
@@ -344,7 +344,7 @@ class VMware(BaseManager):
|
||||
|
||||
return self._host_type
|
||||
|
||||
async def execute(self, subcommand, args, timeout=120, log_level=logging.INFO):
|
||||
async def execute(self, subcommand, args, timeout=120, log_level=logging.INFO): # noqa: ASYNC109 - operation-specific timeout is intentional
|
||||
trial = 2
|
||||
|
||||
while True:
|
||||
@@ -361,7 +361,7 @@ class VMware(BaseManager):
|
||||
trial -= 1
|
||||
await asyncio.sleep(0.5)
|
||||
|
||||
async def _execute(self, subcommand, args, timeout=120, log_level=logging.INFO):
|
||||
async def _execute(self, subcommand, args, timeout=120, log_level=logging.INFO): # noqa: ASYNC109 - operation-specific timeout is intentional
|
||||
if self.host_type is None:
|
||||
await self.check_vmware_version()
|
||||
|
||||
|
||||
Reference in new issue
Block a user