Skip to content

Commit

Permalink
Merge pull request #77 from supersol/support_mongodbMajorVersion_change
Browse files Browse the repository at this point in the history
add mongoDBMajorVersion update support
  • Loading branch information
akshaykarle committed May 2, 2019
2 parents 54dd3b6 + 0ee3cc7 commit 0c3e9d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mongodbatlas/resource_mongodbatlas_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ func resourceClusterUpdate(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("Error reading MongoDB Cluster %s: %s", d.Get("name").(string), err)
}

if d.HasChange("mongodb_major_version") {
c.MongoDBMajorVersion = d.Get("mongodb_major_version").(string)
requestUpdate = true
}

if d.HasChange("backup") {
c.BackupEnabled = d.Get("backup").(bool)
requestUpdate = true
Expand Down

0 comments on commit 0c3e9d8

Please sign in to comment.