From e1d8cb097a4204b3c5fa221063458d7adcb885b8 Mon Sep 17 00:00:00 2001 From: Marco Attia <54147992+Vaneixus@users.noreply.github.com> Date: Tue, 24 Jun 2025 14:38:09 -0400 Subject: [PATCH] misc: revert changes. Signed-off-by: Marco Attia <54147992+Vaneixus@users.noreply.github.com> --- proxmoxtf/resource/file.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxmoxtf/resource/file.go b/proxmoxtf/resource/file.go index 0de2b4c5..617482b8 100644 --- a/proxmoxtf/resource/file.go +++ b/proxmoxtf/resource/file.go @@ -662,14 +662,13 @@ func fileGetContentType(ctx context.Context, d *schema.ResourceData, c proxmox.C ext := strings.TrimLeft(strings.ToLower(filepath.Ext(sourceFilePath)), ".") switch ext { - case "iso": + case "img", "iso": contentType = "iso" case "yaml", "yml": contentType = "snippets" } } - // We cannot determine, for example, the content type of an .img file, so we require the user to specify it. if contentType == "" { return nil, diag.Errorf( "cannot determine the content type of source \"%s\" - Please manually define the \"%s\" argument",