drakkan / terraform-provider-sftpgo

Terraform provider for SFTPGo
Apache License 2.0
25 stars 7 forks source link

Getting "Provider produced inconsistent result after apply for" sftpgo_user resource #13

Closed cristim closed 3 months ago

cristim commented 3 months ago

Getting these errors after each terraform apply run, and terraform keeps trying to change my sftpgo_user resource aven after applying it.

sftpgo_user.ftpuser: Modifying... [id=ftpuser]
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to sftpgo_user.ftpuser, provider "provider[\"registry.terraform.io/drakkan/sftpgo\"]" produced an unexpected new value:
│ .quota_size: was cty.NumberIntVal(0), but now null.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to sftpgo_user.ftpuser, provider "provider[\"registry.terraform.io/drakkan/sftpgo\"]" produced an unexpected new value:
│ .quota_files: was cty.NumberIntVal(0), but now null.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to sftpgo_user.ftpuser, provider "provider[\"registry.terraform.io/drakkan/sftpgo\"]" produced an unexpected new value:
│ .download_bandwidth: was cty.NumberIntVal(0), but now null.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to sftpgo_user.ftpuser, provider "provider[\"registry.terraform.io/drakkan/sftpgo\"]" produced an unexpected new value:
│ .max_sessions: was cty.NumberIntVal(0), but now null.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to sftpgo_user.ftpuser, provider "provider[\"registry.terraform.io/drakkan/sftpgo\"]" produced an unexpected new value:
│ .upload_bandwidth: was cty.NumberIntVal(0), but now null.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
image
cristim commented 3 months ago

This was a configuration issue, seems like I just needed to delete all the values where I was setting zero values.