Skip to content

Commit

Permalink
azurerm_data_factory_credential_user_managed_identity - update `nil…
Browse files Browse the repository at this point in the history
…` check for `annotations` (#25313)
  • Loading branch information
neil-yechenwei authored Mar 19, 2024
1 parent 2100e3c commit eb8a687
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,13 @@ func (DataFactoryCredentialUserAssignedManagedIdentityResource) Read() sdk.Resou
if existing.Model.Properties.TypeProperties != nil && existing.Model.Properties.TypeProperties.ResourceId != nil {
state.IdentityId = *existing.Model.Properties.TypeProperties.ResourceId
}

if existing.Model.Properties.Annotations != nil {
state.Annotations = flattenDataFactoryAnnotations(existing.Model.Properties.Annotations)
}
}

state.DataFactoryId = factories.NewFactoryID(credentialId.SubscriptionId, credentialId.ResourceGroupName, credentialId.FactoryName).ID()
state.Annotations = flattenDataFactoryAnnotations(existing.Model.Properties.Annotations)

return metadata.Encode(&state)
},
Expand Down

0 comments on commit eb8a687

Please sign in to comment.