Skip to content

Commit

Permalink
added a new resource check on name update which was tainting the is_i…
Browse files Browse the repository at this point in the history
…nstance resource
  • Loading branch information
ujjwal-ibm authored and hkantare committed Aug 11, 2021
1 parent 9418019 commit a1a8339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibm/resource_ibm_is_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,7 @@ func instanceUpdate(d *schema.ResourceData, meta interface{}) error {

}

if d.HasChange(isInstanceName) {
if d.HasChange(isInstanceName) && !d.IsNewResource() {
name := d.Get(isInstanceName).(string)
updnetoptions := &vpcv1.UpdateInstanceOptions{
ID: &id,
Expand Down

0 comments on commit a1a8339

Please sign in to comment.