[PATCH storage 0/1] api2: download-url: add allow-overwrite option

Sebastian Fleer dev at dwurp.de
Mon Mar 6 15:31:22 CET 2023


I want to build VM-Images for Debian testing regularly in an automated fashion.
Since the name of the ISO image [0] doesn't change, I'd like to overwrite the existing image with download-url.
It turns out that PVE::Tools::download_file_from_url already has this functionality.

This patch exposes this option via the API.

Regards
Sebastian

[0] https://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-cd/

Sebastian Fleer (1):
  api2: download-url: add allow-overwrite option

 PVE/API2/Storage/Status.pm | 7 +++++++
 1 file changed, 7 insertions(+)

-- 
2.39.2




More information about the pve-devel mailing list