diff --git a/proxmoxtf/resource/file.go b/proxmoxtf/resource/file.go index 016d133d..7ca1fd4b 100644 --- a/proxmoxtf/resource/file.go +++ b/proxmoxtf/resource/file.go @@ -196,13 +196,13 @@ func File() *schema.Resource { Type: schema.TypeInt, Description: "Timeout for uploading ISO/VSTMPL files in seconds", Optional: true, - ForceNew: true, Default: dvResourceVirtualEnvironmentFileTimeoutUpload, }, }, CreateContext: fileCreate, ReadContext: fileRead, DeleteContext: fileDelete, + UpdateContext: fileUpdate, Importer: &schema.ResourceImporter{ StateContext: func(ctx context.Context, d *schema.ResourceData, i interface{}) ([]*schema.ResourceData, error) { node, datastore, volumeID, err := fileParseImportID(d.Id()) @@ -803,3 +803,9 @@ func fileDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag return nil } + +func fileUpdate(_ context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics { + // a pass-through update function -- no actual resource update is needed / allowed + // only the TF state is updated, for example, a timeout_upload attribute value + return nil +}