Skip to content

Commit

Permalink
Refactoring filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jbristowe committed Nov 16, 2020
1 parent 347b8cf commit d430579
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions octopusdeploy/data_source_spaces.go
Expand Up @@ -17,18 +17,11 @@ func dataSourceSpaces() *schema.Resource {
}

func dataSourceSpacesRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
ids := expandArray(d.Get("ids").([]interface{}))
name := d.Get("name").(string)
partialName := d.Get("partial_name").(string)
skip := d.Get("skip").(int)
take := d.Get("take").(int)

query := octopusdeploy.SpacesQuery{
IDs: ids,
Name: name,
PartialName: partialName,
Skip: skip,
Take: take,
IDs: expandArray(d.Get("ids").([]interface{})),
PartialName: d.Get("name").(string),
Skip: d.Get("skip").(int),
Take: d.Get("take").(int),
}

client := m.(*octopusdeploy.Client)
Expand Down

0 comments on commit d430579

Please sign in to comment.