Skip to content

Commit

Permalink
chore: better logging
Browse files Browse the repository at this point in the history
Signed-off-by: Joost Buskermolen <[email protected]>
  • Loading branch information
JoooostB authored and Johan Bloemberg committed Apr 9, 2022
1 parent da14b31 commit 136474a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions resource_transip_openstack_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,10 @@ func resourceOpenstackUserCreate(d *schema.ResourceData, m interface{}) error {
}
var found bool
// get ID of openstack project
for _, user := range users {
log.Printf("GETTING ALL THE USERS!!! %v", user)
}
log.Printf("[DEBUG] listing all users from openstack %v", users)
for _, user := range users {
if user.Username == d.Get("username") {
log.Printf("found id %v for user %v\n", user.Username, user.ID)
log.Printf("[DEBUG] found id %v for user %v\n", user.Username, user.ID)
d.SetId(user.ID)
found = true
break
Expand Down

0 comments on commit 136474a

Please sign in to comment.