Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove space_id from user_role search #643

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions octopusdeploy/data_source_user_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ func dataSourceUserRolesRead(ctx context.Context, d *schema.ResourceData, meta i
Take: d.Get("take").(int),
}

spaceID := d.Get("space_id").(string)

client := meta.(*client.Client)
existingUserRoles, err := userroles.Get(client, spaceID, query)
existingUserRoles, err := userroles.Get(client, "", query)
if err != nil {
return diag.FromErr(err)
}
Expand Down
1 change: 0 additions & 1 deletion octopusdeploy/schema_user_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ func getUserRoleDataSchema() map[string]*schema.Schema {
"partial_name": getQueryPartialName(),
"skip": getQuerySkip(),
"take": getQueryTake(),
"space_id": getQuerySpaceID(),
"user_roles": {
Computed: true,
Description: "A list of user roles that match the filter(s).",
Expand Down
Loading