Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicsim1 committed Oct 24, 2023
1 parent 6c7273c commit 404a430
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions octopusdeploy/data_source_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ func dataSourceVariable() *schema.Resource {
}

func dataSourceVariableReadByName(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
ID := d.Get("id").(string)
spaceID := d.Get("space_id").(string)

ownerID := d.Get("owner_id").(string)
Expand All @@ -30,7 +29,7 @@ func dataSourceVariableReadByName(ctx context.Context, d *schema.ResourceData, m
client := m.(*client.Client)
variables, err := variables.GetByName(client, spaceID, ownerID, name, &scope)
if err != nil {
return diag.Errorf("error reading variable with owner ID %s with ID %s: %s", ownerID, ID, err.Error())
return diag.Errorf("error reading variable with owner ID %s with name %s: %s", ownerID, name, err.Error())
}
if variables == nil {
return nil
Expand Down

0 comments on commit 404a430

Please sign in to comment.