clean code
This commit is contained in:
@@ -101,12 +101,6 @@ class SetupController:
|
||||
"path": str, the path on the VM to store the downloaded file
|
||||
}
|
||||
"""
|
||||
|
||||
# if not config:
|
||||
# return
|
||||
# if not 'download' in config:
|
||||
# return
|
||||
# for url, path in config['download']:
|
||||
for f in files:
|
||||
url: str = f["url"]
|
||||
path: str = f["path"]
|
||||
@@ -193,12 +187,6 @@ class SetupController:
|
||||
logger.error("An error occurred while trying to send the request: %s", e)
|
||||
|
||||
def _change_wallpaper_setup(self, path: str):
|
||||
# if not config:
|
||||
# return
|
||||
# if not 'wallpaper' in config:
|
||||
# return
|
||||
|
||||
# path = config['wallpaper']
|
||||
if not path:
|
||||
raise Exception(f"Setup Wallpaper - Invalid path ({path}).")
|
||||
|
||||
@@ -221,11 +209,6 @@ class SetupController:
|
||||
raise NotImplementedError()
|
||||
|
||||
def _open_setup(self, path: str):
|
||||
# if not config:
|
||||
# return
|
||||
# if not 'open' in config:
|
||||
# return
|
||||
# for path in config['open']:
|
||||
if not path:
|
||||
raise Exception(f"Setup Open - Invalid path ({path}).")
|
||||
|
||||
|
||||
@@ -105,8 +105,6 @@ def get_vm_file(env, config: Dict[str, Any]) -> Union[Optional[str], List[Option
|
||||
_path = os.path.join(env.cache_dir, d)
|
||||
file = env.controller.get_file(p)
|
||||
if file is None:
|
||||
#return None
|
||||
# raise FileNotFoundError("File not found on VM: {:}".format(config["path"]))
|
||||
if i in gives:
|
||||
cache_paths.append(None)
|
||||
continue
|
||||
|
||||
@@ -15,8 +15,7 @@ You need to assign values to several variables crucial for the operation of thes
|
||||
- Formatted as follows:
|
||||
```python
|
||||
IMAGE_ID_MAP = {
|
||||
"us-east-1": "ami-019f92c05df45031b",
|
||||
"ap-east-1": "ami-07b4956131da1b282"
|
||||
"us-east-1": "ami-00674d875de9addc1"
|
||||
# Add other regions and corresponding AMIs
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user