mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-04 04:22:59 +00:00
fix(file): forced replacement of file resources that missing timeout_upload
attribute (#528)
This commit is contained in:
parent
91c192b62f
commit
11d82614e6
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user