diff --git a/docs/resources/smb_share.md b/docs/resources/smb_share.md index acb2b552..61009f19 100644 --- a/docs/resources/smb_share.md +++ b/docs/resources/smb_share.md @@ -190,7 +190,7 @@ Required: Optional: -- `id` (String) Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'. +- `id` (String) Specifies the serialized form of a persona using security identifier, which can be 'SID:S-1-1'. - `name` (String) Specifies the persona name, which must be combined with a type. - `type` (String) Specifies the type of persona, which must be combined with a name. @@ -201,7 +201,7 @@ Optional: Optional: -- `id` (String) Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'. +- `id` (String) Specifies the serialized form of a persona using security identifier, which can be 'SID:S-1-1'. - `name` (String) Specifies the persona name, which must be combined with a type. - `type` (String) Specifies the type of persona, which must be combined with a name. diff --git a/powerscale/provider/quota_resource.go b/powerscale/provider/quota_resource.go index 842da72b..17f23e7b 100644 --- a/powerscale/provider/quota_resource.go +++ b/powerscale/provider/quota_resource.go @@ -499,7 +499,7 @@ func (r *QuotaResource) Update(ctx context.Context, request resource.UpdateReque tflog.Debug(ctx, "calling get quota by ID on pscale client", map[string]interface{}{ "smbQuotaID": quotaID, }) - updatedQuota, err := helper.GetQuota(ctx, r.client, quotaID, quotaState.Zone.ValueString()) + updatedQuota, err := helper.GetQuota(ctx, r.client, quotaID, quotaPlan.Zone.ValueString()) if err != nil { errStr := constants.UpdateQuotaErrorMsg + "with error: " message := helper.GetErrorString(err, errStr) diff --git a/powerscale/provider/smb_share_resource.go b/powerscale/provider/smb_share_resource.go index 1b8472ba..6098be7a 100644 --- a/powerscale/provider/smb_share_resource.go +++ b/powerscale/provider/smb_share_resource.go @@ -294,8 +294,8 @@ func (r *SmbShareResource) Schema(ctx context.Context, req resource.SchemaReques Required: true, Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ - Description: "Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'.", - MarkdownDescription: "Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'.", + Description: "Specifies the serialized form of a persona using security identifier, which can be 'SID:S-1-1'.", + MarkdownDescription: "Specifies the serialized form of a persona using security identifier, which can be 'SID:S-1-1'.", Optional: true, Computed: true, }, @@ -326,8 +326,8 @@ func (r *SmbShareResource) Schema(ctx context.Context, req resource.SchemaReques NestedObject: schema.NestedAttributeObject{ Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ - Description: "Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'.", - MarkdownDescription: "Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'.", + Description: "Specifies the serialized form of a persona using security identifier, which can be 'SID:S-1-1'.", + MarkdownDescription: "Specifies the serialized form of a persona using security identifier, which can be 'SID:S-1-1'.", Optional: true, Computed: true, }, @@ -558,7 +558,7 @@ func (r SmbShareResource) Update(ctx context.Context, request resource.UpdateReq ) return } - err = helper.UpdateSmbShare(ctx, r.client, shareID, shareState.Zone.ValueStringPointer(), shareToUpdate) + err = helper.UpdateSmbShare(ctx, r.client, shareID, sharePlan.Zone.ValueStringPointer(), shareToUpdate) if err != nil { errStr := constants.UpdateSmbShareErrorMsg + "with error: " message := helper.GetErrorString(err, errStr)