feat&fix: update AWS VM management methods and add AWS provider configuration

This commit is contained in:
adlsdztony
2025-05-26 18:07:35 +08:00
parent a845824f06
commit 874878e882
5 changed files with 15 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ class DesktopEnv(gym.Env):
self.path_to_vm = os.path.abspath(os.path.expandvars(os.path.expanduser(path_to_vm))) \
if provider_name in {"vmware", "virtualbox"} else path_to_vm
else:
self.path_to_vm = self.manager.get_vm_path(self.os_type, region)
self.path_to_vm = self.manager.get_vm_path(os_type=self.os_type, region=region)
self.snapshot_name = snapshot_name
self.cache_dir_base: str = cache_dir