4.13.0
This commit is contained in:
@@ -59,6 +59,8 @@ func DataSourceUserGetAudit() *schema.Resource {
|
||||
return &schema.Resource{
|
||||
SchemaVersion: 1,
|
||||
|
||||
DeprecationMessage: "This data source is deprecated and will be removed in version 4.14.0.",
|
||||
|
||||
ReadContext: dataSourceUserGetAuditRead,
|
||||
|
||||
Timeouts: &schema.ResourceTimeout{
|
||||
|
||||
@@ -63,7 +63,6 @@ func flattenUserDataSource(d *schema.ResourceData, details *user.ItemUser) {
|
||||
d.Set("guid", details.GUID)
|
||||
d.Set("last_check", details.LastCheck)
|
||||
d.Set("mobile", flattenItemUser(details.Mobile))
|
||||
d.Set("password", details.Password)
|
||||
d.Set("protected", details.Protected)
|
||||
d.Set("roles", flattenItemUser(details.Roles))
|
||||
d.Set("service_account", details.ServiceAccount)
|
||||
@@ -157,7 +156,6 @@ func flattenUserList(users *user.ListUsers) []map[string]interface{} {
|
||||
"user_id": item.ID,
|
||||
"last_check": item.LastCheck,
|
||||
"mobile": flattenItemUser(item.Mobile),
|
||||
"password": item.Password,
|
||||
"protected": item.Protected,
|
||||
"roles": flattenItemUser(item.Roles),
|
||||
"service_account": item.ServiceAccount,
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
func resourceUserCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
|
||||
|
||||
log.Debugf("resourceUserCreate: called with username %s, emailaddress %v", d.Get("username").(string), d.Get("emailaddress").([]interface{}))
|
||||
log.Debugf("resourceUserCreate: called with username %s, emailaddress %v", d.Get("username").(string), d.Get("emailaddress").(string))
|
||||
|
||||
c := m.(*controller.ControllerCfg)
|
||||
|
||||
@@ -26,10 +26,7 @@ func resourceUserCreate(ctx context.Context, d *schema.ResourceData, m interface
|
||||
EmailAddress: email,
|
||||
}
|
||||
|
||||
if passwd, ok := d.GetOk("password"); ok {
|
||||
|
||||
createReq.Password = passwd.(string)
|
||||
}
|
||||
createReq.Password = d.Get("password").(string)
|
||||
|
||||
if provider, ok := d.GetOk("provider_name"); ok {
|
||||
createReq.Provider = provider.(string)
|
||||
|
||||
@@ -111,11 +111,6 @@ func dataSourceUserSchemaMake() map[string]*schema.Schema {
|
||||
},
|
||||
Description: "mobile",
|
||||
},
|
||||
"password": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "password",
|
||||
},
|
||||
"protected": {
|
||||
Type: schema.TypeBool,
|
||||
Computed: true,
|
||||
@@ -370,11 +365,6 @@ func dataSourceUserListSchemaMake() map[string]*schema.Schema {
|
||||
},
|
||||
Description: "mobile",
|
||||
},
|
||||
"password": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "password",
|
||||
},
|
||||
"protected": {
|
||||
Type: schema.TypeBool,
|
||||
Computed: true,
|
||||
@@ -427,8 +417,8 @@ func resourceUserSchemaMake() map[string]*schema.Schema {
|
||||
},
|
||||
"password": {
|
||||
Type: schema.TypeString,
|
||||
Default: "strongpassword",
|
||||
Optional: true,
|
||||
Required: true,
|
||||
Sensitive: true,
|
||||
Description: "password of user",
|
||||
},
|
||||
"provider_name": {
|
||||
|
||||
Reference in New Issue
Block a user