Skip to content

Commit

Permalink
Merge pull request #25 from Bowbaq/mb-fix-logs-messages
Browse files Browse the repository at this point in the history
Fix parameter order in log messages
  • Loading branch information
akshaykarle authored Jul 27, 2018
2 parents b29993a + ca5ae93 commit e0f8ad7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mongodbatlas/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func resourceClusterImportState(d *schema.ResourceData, meta interface{}) ([]*sc

c, _, err := client.Clusters.Get(gid, name)
if err != nil {
return nil, fmt.Errorf("Couldn't import cluster %s in group %s, error: %s", gid, name, err.Error())
return nil, fmt.Errorf("Couldn't import cluster %s in group %s, error: %s", name, gid, err.Error())
}

d.SetId(c.ID)
Expand Down
2 changes: 1 addition & 1 deletion mongodbatlas/database_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func resourceDatabaseUserImportState(d *schema.ResourceData, meta interface{}) (

u, _, err := client.DatabaseUsers.Get(gid, username)
if err != nil {
return nil, fmt.Errorf("Couldn't import user %s in group %s, error: %s", gid, username, err.Error())
return nil, fmt.Errorf("Couldn't import user %s in group %s, error: %s", username, gid, err.Error())
}

d.SetId(u.Username)
Expand Down
2 changes: 1 addition & 1 deletion mongodbatlas/ip_whitelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func resourceIPWhiteListImportState(d *schema.ResourceData, meta interface{}) ([

ip, _, err := client.Whitelist.Get(gid, cidr)
if err != nil {
return nil, fmt.Errorf("Couldn't import ip whitelist %s in group %s, error: %s", gid, cidr, err.Error())
return nil, fmt.Errorf("Couldn't import ip whitelist %s in group %s, error: %s", cidr, gid, err.Error())
}

d.SetId(ip.CidrBlock)
Expand Down

0 comments on commit e0f8ad7

Please sign in to comment.