Skip to content

Commit

Permalink
update importer
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed Mar 4, 2022
1 parent e36639d commit 9b7ab3c
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -33,7 +33,10 @@ func resourceServiceBusNamespaceCustomerManagedKey() *pluginsdk.Resource {
Delete: pluginsdk.DefaultTimeout(30 * time.Minute),
},

Importer: pluginsdk.DefaultImporter(),
Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error {
_, err := parse.NamespaceID(id)
return err
}),

Schema: map[string]*pluginsdk.Schema{
"namespace_id": {
Expand Down

0 comments on commit 9b7ab3c

Please sign in to comment.