0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 19:12:59 +00:00

fix(user): make password attribute optional (#463)

This commit is contained in:
Pavel Boldyrev 2023-08-05 18:57:08 -04:00 committed by GitHub
parent 368b133427
commit 5a3b1ccaf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ resource "proxmox_virtual_environment_role" "operations_monitoring" {
- `groups` - (Optional) The user's groups.
- `keys` - (Optional) The user's keys.
- `last_name` - (Optional) The user's last name.
- `password` - (Required) The user's password.
- `password` - (Optional) The user's password. Required for PVE or PAM realms.
- `user_id` - (Required) The user identifier.
## Attribute Reference

View File

@ -131,7 +131,7 @@ func User() *schema.Resource {
mkResourceVirtualEnvironmentUserPassword: {
Type: schema.TypeString,
Description: "The user's password",
Required: true,
Optional: true,
},
mkResourceVirtualEnvironmentUserUserID: {
Type: schema.TypeString,

View File

@ -31,7 +31,6 @@ func TestUserSchema(t *testing.T) {
s := User()
test.AssertRequiredArguments(t, s, []string{
mkResourceVirtualEnvironmentUserPassword,
mkResourceVirtualEnvironmentUserUserID,
})
@ -45,6 +44,7 @@ func TestUserSchema(t *testing.T) {
mkResourceVirtualEnvironmentUserGroups,
mkResourceVirtualEnvironmentUserKeys,
mkResourceVirtualEnvironmentUserLastName,
mkResourceVirtualEnvironmentUserPassword,
})
test.AssertValueTypes(t, s, map[string]schema.ValueType{