@@ -82,7 +82,6 @@ func getRemoteL3DomainProfile(client *client.Client, dn string) (*models.L3Domai
8282
8383func setL3DomainProfileAttributes (l3extDomP * models.L3DomainProfile , d * schema.ResourceData ) * schema.ResourceData {
8484 d .SetId (l3extDomP .DistinguishedName )
85- d .Set ("description" , l3extDomP .Description )
8685 l3extDomPMap , _ := l3extDomP .ToMap ()
8786
8887 d .Set ("name" , l3extDomPMap ["name" ])
@@ -113,7 +112,6 @@ func resourceAciL3DomainProfileImport(d *schema.ResourceData, m interface{}) ([]
113112func resourceAciL3DomainProfileCreate (d * schema.ResourceData , m interface {}) error {
114113 log .Printf ("[DEBUG] L3DomainProfile: Beginning Creation" )
115114 aciClient := m .(* client.Client )
116- desc := d .Get ("description" ).(string )
117115
118116 name := d .Get ("name" ).(string )
119117
@@ -126,7 +124,7 @@ func resourceAciL3DomainProfileCreate(d *schema.ResourceData, m interface{}) err
126124 if NameAlias , ok := d .GetOk ("name_alias" ); ok {
127125 l3extDomPAttr .NameAlias = NameAlias .(string )
128126 }
129- l3extDomP := models .NewL3DomainProfile (fmt .Sprintf ("l3dom-%s" , name ), "uni" , desc , l3extDomPAttr )
127+ l3extDomP := models .NewL3DomainProfile (fmt .Sprintf ("l3dom-%s" , name ), "uni" , "" , l3extDomPAttr )
130128
131129 err := aciClient .Save (l3extDomP )
132130 if err != nil {
@@ -242,7 +240,6 @@ func resourceAciL3DomainProfileUpdate(d *schema.ResourceData, m interface{}) err
242240 log .Printf ("[DEBUG] L3DomainProfile: Beginning Update" )
243241
244242 aciClient := m .(* client.Client )
245- desc := d .Get ("description" ).(string )
246243
247244 name := d .Get ("name" ).(string )
248245
@@ -255,7 +252,7 @@ func resourceAciL3DomainProfileUpdate(d *schema.ResourceData, m interface{}) err
255252 if NameAlias , ok := d .GetOk ("name_alias" ); ok {
256253 l3extDomPAttr .NameAlias = NameAlias .(string )
257254 }
258- l3extDomP := models .NewL3DomainProfile (fmt .Sprintf ("l3dom-%s" , name ), "uni" , desc , l3extDomPAttr )
255+ l3extDomP := models .NewL3DomainProfile (fmt .Sprintf ("l3dom-%s" , name ), "uni" , "" , l3extDomPAttr )
259256
260257 l3extDomP .Status = "modified"
261258
0 commit comments