VLC updates, and some infra bugs fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
from typing import Dict
|
||||
|
||||
import os
|
||||
import requests
|
||||
|
||||
|
||||
@@ -37,11 +37,16 @@ def get_vm_file(env, config: Dict[str, str]) -> str:
|
||||
_path = os.path.join(env.cache_dir, config["dest"])
|
||||
|
||||
file = env.controller.get_file(config["path"])
|
||||
|
||||
if file is None:
|
||||
raise FileNotFoundError("File not found on VM: {:}".format(config["path"]))
|
||||
|
||||
with open(_path, "wb") as f:
|
||||
f.write(file)
|
||||
|
||||
return _path
|
||||
|
||||
|
||||
def get_cache_file(env, config: Dict[str, str]) -> str:
|
||||
"""
|
||||
Config:
|
||||
|
||||
Reference in New Issue
Block a user