Skip to content

Commit

Permalink
resource/aws_licensemanager_license_configuration: Remove deprecated …
Browse files Browse the repository at this point in the history
…(helper/schema.ResourceData).Partial() and (helper/schema.ResourceData).SetPartial() (hashicorp#12470)

Reference: hashicorp#12083
Reference: hashicorp#12087

Previously:

```
aws/resource_aws_licensemanager_license_configuration.go:141:2: R007: deprecated (schema.ResourceData).Partial
aws/resource_aws_licensemanager_license_configuration.go:150:3: R008: deprecated (schema.ResourceData).SetPartial
aws/resource_aws_licensemanager_license_configuration.go:153:2: R007: deprecated (schema.ResourceData).Partial
```

Output from acceptance testing:

```
--- PASS: TestAccAWSLicenseManagerLicenseConfiguration_basic (16.06s)
--- PASS: TestAccAWSLicenseManagerLicenseConfiguration_update (25.54s)
```
  • Loading branch information
bflad authored and adamdecaf committed May 28, 2020
1 parent b9699d8 commit 452610d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions aws/resource_aws_licensemanager_license_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,14 @@ func resourceAwsLicenseManagerLicenseConfigurationRead(d *schema.ResourceData, m
func resourceAwsLicenseManagerLicenseConfigurationUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).licensemanagerconn

d.Partial(true)

if d.HasChange("tags") {
o, n := d.GetChange("tags")

if err := keyvaluetags.LicensemanagerUpdateTags(conn, d.Id(), o, n); err != nil {
return fmt.Errorf("error updating License Manager License Configuration (%s) tags: %s", d.Id(), err)
}

d.SetPartial("tags")
}

d.Partial(false)

opts := &licensemanager.UpdateLicenseConfigurationInput{
LicenseConfigurationArn: aws.String(d.Id()),
Name: aws.String(d.Get("name").(string)),
Expand Down

0 comments on commit 452610d

Please sign in to comment.