Skip to content

Commit

Permalink
update as per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
madhushreeray30 committed Nov 2, 2023
1 parent a2f939f commit 555a82f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions azure/table_azure_databricks_workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func tableAzureDatabricksWorkspace(_ context.Context) *plugin.Table {
KeyColumns: plugin.AllColumns([]string{"name", "resource_group"}),
Hydrate: getDatabricksWorkspace,
IgnoreConfig: &plugin.IgnoreConfig{
ShouldIgnoreErrorFunc: isNotFoundError([]string{"ResourceNotFound", "ResourceGroupNotFound", "400"}),
ShouldIgnoreErrorFunc: isNotFoundError([]string{"ResourceNotFound", "ResourceGroupNotFound"}),
},
},
List: &plugin.ListConfig{
Expand All @@ -34,7 +34,7 @@ func tableAzureDatabricksWorkspace(_ context.Context) *plugin.Table {
},
{
Name: "id",
Description: "Fully qualified resource Id for the resource.",
Description: "Fully qualified resource ID for the resource.",
Type: proto.ColumnType_STRING,
Transform: transform.FromGo(),
},
Expand All @@ -55,7 +55,7 @@ func tableAzureDatabricksWorkspace(_ context.Context) *plugin.Table {
},
{
Name: "managed_resource_group_id",
Description: "The managed resource group Id.",
Description: "The managed resource group ID.",
Type: proto.ColumnType_STRING,
Transform: transform.FromField("WorkspaceProperties.ManagedResourceGroupID"),
},
Expand Down Expand Up @@ -159,7 +159,7 @@ func tableAzureDatabricksWorkspace(_ context.Context) *plugin.Table {
//// LIST FUNCTION

func listDatabricksWorkspaces(ctx context.Context, d *plugin.QueryData, _ *plugin.HydrateData) (interface{}, error) {
plugin.Logger(ctx).Trace("listDatabricksWorkspaces")
plugin.Logger(ctx).Debug("listDatabricksWorkspaces")
session, err := GetNewSession(ctx, d, "MANAGEMENT")
if err != nil {
return nil, err
Expand Down Expand Up @@ -197,8 +197,8 @@ func listDatabricksWorkspaces(ctx context.Context, d *plugin.QueryData, _ *plugi
func getDatabricksWorkspace(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData) (interface{}, error) {
plugin.Logger(ctx).Trace("getDatabricksWorkspace")

workspaceName := d.EqualsQuals["name"].GetStringValue()
resourceGroup := d.EqualsQuals["resource_group"].GetStringValue()
workspaceName := d.EqualsQualString("name")
resourceGroup := d.EqualsQualString("resource_group")

// Return nil, if no input provide
if workspaceName == "" || resourceGroup == "" {
Expand Down

0 comments on commit 555a82f

Please sign in to comment.