Skip to content

Commit

Permalink
add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiggi33 committed Jul 23, 2024
1 parent ec573ac commit 726cae9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/provider/users_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func (d *usersDataSource) Read(ctx context.Context, req datasource.ReadRequest,
var state usersDataSourceModel

users, err := d.client.GetUsers()
fmt.Println(users)
if err != nil {
resp.Diagnostics.AddError(
"Unable to Read Pterodactyl Users",
Expand All @@ -133,6 +134,9 @@ func (d *usersDataSource) Read(ctx context.Context, req datasource.ReadRequest,
UpdatedAt: user.UpdatedAt.Format(time.RFC3339),
}

fmt.Println(userState)
fmt.Println(user)

state.Users = append(state.Users, userState)
}

Expand Down

0 comments on commit 726cae9

Please sign in to comment.