Skip to content

Commit

Permalink
minor strings polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Oct 21, 2023
1 parent 506b145 commit 12e7e33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apstra/data_source_blueprint_iba_predefined_probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (o *dataSourceBlueprintIbaPredefinedProbe) Read(ctx context.Context, req da
if utils.IsApstra404(err) {
resp.Diagnostics.AddAttributeError(
path.Root("name"),
"IBA widget not found",
"IBA Predefined Probe not found",
fmt.Sprintf("IBA Predefined Probe with name %s not found", config.Name))
return
}
Expand Down
2 changes: 1 addition & 1 deletion apstra/iba/predefined_probes.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (o PredefinedProbe) DataSourceAttributes() map[string]dataSourceSchema.Attr
Validators: []validator.String{stringvalidator.LengthAtLeast(1)},
},
"name": dataSourceSchema.StringAttribute{
MarkdownDescription: "Populate this field to look up a IBA Predefined Probe.",
MarkdownDescription: "Populate this field to look up an IBA Predefined Probe.",
Required: true,
Validators: []validator.String{
stringvalidator.LengthAtLeast(1),
Expand Down
8 changes: 4 additions & 4 deletions apstra/resource_blueprint_iba_widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (o *resourceBlueprintIbaWidget) Configure(ctx context.Context, req resource

func (o *resourceBlueprintIbaWidget) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
MarkdownDescription: "This resource creates a IBA Widget.",
MarkdownDescription: "This resource creates an IBA Widget.",
Attributes: iba.Widget{}.ResourceAttributes(),
}
}
Expand Down Expand Up @@ -60,7 +60,7 @@ func (o *resourceBlueprintIbaWidget) Create(ctx context.Context, req resource.Cr

id, err := bpClient.CreateIbaWidget(ctx, probeReq)
if err != nil {
resp.Diagnostics.AddError("failed to create Iba Probe", err.Error())
resp.Diagnostics.AddError("failed to create IBA Widget", err.Error())
return
}

Expand Down Expand Up @@ -129,13 +129,13 @@ func (o *resourceBlueprintIbaWidget) Update(ctx context.Context, req resource.Up
// Update IBA Widget
err = bpClient.UpdateIbaWidget(ctx, apstra.ObjectId(plan.Id.ValueString()), widgetReq)
if err != nil {
resp.Diagnostics.AddError("error updating IBA Dashboard plan", err.Error())
resp.Diagnostics.AddError("error updating IBA Widget", err.Error())
return
}

api, err := bpClient.GetIbaWidget(ctx, apstra.ObjectId(plan.Id.ValueString()))
if err != nil {
resp.Diagnostics.AddError("Failed to Read IBA Dashboard", err.Error())
resp.Diagnostics.AddError("Failed to Read IBA Widget", err.Error())
return
}

Expand Down

0 comments on commit 12e7e33

Please sign in to comment.