Skip to content

Commit

Permalink
Cloud SQL user password can be optional (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaijab authored and rosbo committed Feb 7, 2018
1 parent e51a299 commit 1b042a3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion google/resource_sql_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func resourceSqlUser() *schema.Resource {

"password": &schema.Schema{
Type: schema.TypeString,
Required: true,
Optional: true,
Sensitive: true,
},

Expand Down
1 change: 0 additions & 1 deletion google/resource_sql_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ func testGoogleSqlUser_basic2(instance, user string) string {
name = "user%s"
instance = "${google_sql_database_instance.instance.name}"
host = "google.com"
password = "oops"
}
`, instance, user)
}
2 changes: 1 addition & 1 deletion website/docs/r/sql_user.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The following arguments are supported:
* `name` - (Required) The name of the user. Changing this forces a new resource
to be created.

* `password` - (Required) The users password. Can be updated.
* `password` - (Optional) The users password. Can be updated.

- - -

Expand Down

0 comments on commit 1b042a3

Please sign in to comment.