diff --git a/nutanix/structure.go b/nutanix/structure.go index 27b4768aa..d1b944805 100644 --- a/nutanix/structure.go +++ b/nutanix/structure.go @@ -374,8 +374,10 @@ func flattenNutanixGuestTools(d *schema.ResourceData, guest *v3.GuestToolsStatus return err } - if err := d.Set("ngt_credentials", ngtCredentials); err != nil { - return err + if _, ok := d.GetOk("ngt_credentials"); !ok { + if err := d.Set("ngt_credentials", ngtCredentials); err != nil { + return err + } } if err := d.Set("nutanix_guest_tools", nutanixGuestTools); err != nil {