refs #631 - API correction

pull/1/head
Gerardo GIl Elizeire 2024-11-07 16:57:02 +01:00
parent f6064b962d
commit a367aed25a
1 changed files with 0 additions and 3 deletions

View File

@ -655,7 +655,6 @@ def import_image():
ou_subdir = json_data.get("ou_subdir")
remote_ip = json_data.get("repo_ip")
remote_user = json_data.get("user")
ogcore_ip = json_data.get("ogcore_ip")
# Evaluamos los parámetros obtenidos, para construir la ruta de la imagen:
if ou_subdir == "none":
@ -734,7 +733,6 @@ def export_image():
image_id = json_data.get("ID_img")
remote_ip = json_data.get("repo_ip")
remote_user = json_data.get("user")
ogcore_ip = json_data.get("ogcore_ip")
# Obtenemos el nombre y la extensión de la imagen (y el subdirectorio de OU, si fuera el caso):
param_dict = get_image_params(image_id, "repo")
@ -819,7 +817,6 @@ def create_torrent_sum():
json_data = json.loads(request.data)
image_name = json_data.get("image")
ou_subdir = json_data.get("ou_subdir")
ogcore_ip = json_data.get("ogcore_ip")
# Evaluamos los parámetros obtenidos, para construir la ruta de la imagen (relativa a "repo_path"):
if ou_subdir == "none":