Skip to content

Commit

Permalink
Removed Debug.Wait
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeckel committed Jul 1, 2020
1 parent 571b881 commit 6c79a38
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 58 deletions.
3 changes: 0 additions & 3 deletions azuredevops/internal/service/git/data_git_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/client"
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/utils"
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/utils/debug"
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/utils/suppress"
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/utils/validate"
)
Expand Down Expand Up @@ -61,8 +60,6 @@ func DataGitRepository() *schema.Resource {
}

func dataSourceGitRepositoryRead(d *schema.ResourceData, m interface{}) error {
debug.Wait()

clients := m.(*client.AggregatedClient)

name := d.Get("name").(string)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/client"
securityhelper "github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/service/permissions/utils"
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/utils/converter"
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/utils/debug"
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/utils/validate"
)

Expand Down Expand Up @@ -50,8 +49,6 @@ func ResourceGitPermissions() *schema.Resource {
}

func resourceGitPermissionsCreate(d *schema.ResourceData, m interface{}) error {
debug.Wait()

clients := m.(*client.AggregatedClient)

sn, err := securityhelper.NewSecurityNamespace(clients.Ctx,
Expand All @@ -76,8 +73,6 @@ func resourceGitPermissionsCreate(d *schema.ResourceData, m interface{}) error {
}

func resourceGitPermissionsRead(d *schema.ResourceData, m interface{}) error {
debug.Wait()

clients := m.(*client.AggregatedClient)

aclToken, err := createGitToken(clients, d)
Expand All @@ -103,14 +98,10 @@ func resourceGitPermissionsRead(d *schema.ResourceData, m interface{}) error {
}

func resourceGitPermissionsUpdate(d *schema.ResourceData, m interface{}) error {
debug.Wait()

return resourceGitPermissionsCreate(d, m)
}

func resourceGitPermissionsDelete(d *schema.ResourceData, m interface{}) error {
debug.Wait()

clients := m.(*client.AggregatedClient)

aclToken, err := createGitToken(clients, d)
Expand All @@ -136,8 +127,6 @@ func resourceGitPermissionsDelete(d *schema.ResourceData, m interface{}) error {
}

func resourceGitPermissionsImporter(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
debug.Wait()

// repoV2/#ProjectID#/#RepositoryID#/refs/heads/#BranchName#/#SubjectDescriptor#
return nil, errors.New("resourceGitPermissionsImporter: Not implemented")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/client"
securityhelper "github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/service/permissions/utils"
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/utils/debug"
"github.com/terraform-providers/terraform-provider-azuredevops/azuredevops/internal/utils/validate"
)

Expand All @@ -33,8 +32,6 @@ func ResourceProjectPermissions() *schema.Resource {
}

func resourceProjectPermissionsCreate(d *schema.ResourceData, m interface{}) error {
debug.Wait()

clients := m.(*client.AggregatedClient)

sn, err := securityhelper.NewSecurityNamespace(clients.Ctx,
Expand All @@ -59,8 +56,6 @@ func resourceProjectPermissionsCreate(d *schema.ResourceData, m interface{}) err
}

func resourceProjectPermissionsRead(d *schema.ResourceData, m interface{}) error {
debug.Wait()

clients := m.(*client.AggregatedClient)

sn, err := securityhelper.NewSecurityNamespace(clients.Ctx,
Expand All @@ -86,14 +81,10 @@ func resourceProjectPermissionsRead(d *schema.ResourceData, m interface{}) error
}

func resourceProjectPermissionsUpdate(d *schema.ResourceData, m interface{}) error {
debug.Wait()

return resourceProjectPermissionsCreate(d, m)
}

func resourceProjectPermissionsDelete(d *schema.ResourceData, m interface{}) error {
debug.Wait()

clients := m.(*client.AggregatedClient)

sn, err := securityhelper.NewSecurityNamespace(clients.Ctx,
Expand All @@ -118,8 +109,6 @@ func resourceProjectPermissionsDelete(d *schema.ResourceData, m interface{}) err
}

func resourceProjectPermissionsImporter(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
debug.Wait()

// $PROJECT:vstfs:///Classification/TeamProject/<ProjectId>/<SubjectDescriptor>
return nil, errors.New("resourceProjectPermissionsImporter: Not implemented")
}
Expand Down
33 changes: 0 additions & 33 deletions azuredevops/internal/utils/debug/Debug.go

This file was deleted.

0 comments on commit 6c79a38

Please sign in to comment.