Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
diya-dhan committed Sep 6, 2024
1 parent e5797ad commit 9fa8153
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/provider/datasource_directories.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func (ds *directoriesDataSource) Configure(_ context.Context, req datasource.Con
}

func (ds *directoriesDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
// Any changes made to the schema must be reflected in the template file templates/datasources/directories.md.tmpl
resp.Schema = schema.Schema{
MarkdownDescription: `Gets all the directories in a global account, including the directories in directories.
Expand Down
6 changes: 6 additions & 0 deletions internal/provider/datasource_directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ import (
"github.com/SAP/terraform-provider-btp/internal/validation/uuidvalidator"
)


/*
The attributes listed below are used in the 'directories' datasource.
Thus any changes made to the schema must also be reflected in the
template file templates/datasources/directories.md.tmpl
*/
var dataSourceDirectorySchemaAttributes = map[string]schema.Attribute{
"id": schema.StringAttribute{
MarkdownDescription: "The ID of the directory.",
Expand Down

0 comments on commit 9fa8153

Please sign in to comment.