add fields for others resources

main
Martin Guibert 2021-11-23 18:22:08 +01:00
parent e40aba548c
commit b36be3b37d
No known key found for this signature in database
GPG Key ID: 990E40316943BAA6
2 changed files with 8 additions and 2 deletions

View File

@ -43,7 +43,10 @@ func (e *AzurermPrivateDNSCNameRecordEnumerator) Enumerate() ([]*resource.Resour
e.factory.CreateAbstractResource(
string(e.SupportedType()),
*record.ID,
map[string]interface{}{},
map[string]interface{}{
"name": *record.Name,
"zone_name": *zone.Name,
},
),
)
}

View File

@ -43,7 +43,10 @@ func (e *AzurermPrivateDNSMXRecordEnumerator) Enumerate() ([]*resource.Resource,
e.factory.CreateAbstractResource(
string(e.SupportedType()),
*record.ID,
map[string]interface{}{},
map[string]interface{}{
"name": *record.Name,
"zone_name": *zone.Name,
},
),
)
}