Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Wasilewski <[email protected]>
  • Loading branch information
mwasilew2 committed Oct 10, 2023
1 parent 381fca9 commit d9081f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/resources/spacelift_user_mapping/resource.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "spacelift_user_mapping" "test" {
email = "johnk@eample.com"
email = "johnk@example.com"
username = "johnk"
policy {
space_id = "root"
Expand Down
4 changes: 2 additions & 2 deletions spacelift/resource_user_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func resourceUserMapping() *schema.Resource {
Schema: map[string]*schema.Schema{
"space_id": {
Type: schema.TypeString,
Description: "ID (slug) of the space the user group has access to",
Description: "ID (slug) of the space the user has access to",
Required: true,
ValidateDiagFunc: validations.DisallowEmptyString,
},
Expand All @@ -66,7 +66,7 @@ func resourceUserMapping() *schema.Resource {
func resourceUserMappingCreate(ctx context.Context, d *schema.ResourceData, i interface{}) diag.Diagnostics {
// send an Invite (create) mutation to the API
var mutation struct {
User *structs.User `graphql:"managedUserInvite(input: $iinput)"`
User *structs.User `graphql:"managedUserInvite(input: $input)"`
}
variables := map[string]interface{}{
"input": structs.UserInviteInput{
Expand Down
2 changes: 1 addition & 1 deletion spacelift/resource_user_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestUserResource(t *testing.T) {
})

t.Run("can remove one access", func(t *testing.T) {

})

}

0 comments on commit d9081f8

Please sign in to comment.