techBeck03 / terraform-provider-guacamole

Terraform provider for apache gaucamole
Apache License 2.0
15 stars 10 forks source link

Integer field GuacUser.lastActive can't hold DateTime as Long #12

Open lbrpsoftware opened 1 year ago

lbrpsoftware commented 1 year ago

Terraform Version

Affected Resource

Terraform Configuration Files

resource "guacamole_user" "user" {
  username = "User"
  password = "Password"
  group_membership   = [ "Admin Group" ]
  system_permissions = [ "ADMINISTER", "CREATE_USER" ]
  connection_groups  = [ ]
  connections        = [ ]
  lifecycle {
    ignore_changes = [password]
  }
}

Expected Behavior

✅ No error message when applying users for the second time, after logged in into the Guacamole webinterface.

Actual Behavior

💥 Error: json: cannot unmarshal number 1684076108425 into Go struct field GuacUser.lastActive of type int

Steps to Reproduce

  1. Terraform Apply
  2. Login into the Guacamole webinterface so the user field lastActive gets set.
  3. Terraform Apply