File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,11 @@ func resourceMongoDBAtlasEventTriggers() *schema.Resource {
110110 var j , j2 interface {}
111111 if err := json .Unmarshal ([]byte (old ), & j ); err != nil {
112112 log .Printf ("[ERROR] json.Unmarshal %v" , err )
113+ return false
113114 }
114115 if err := json .Unmarshal ([]byte (new ), & j2 ); err != nil {
115116 log .Printf ("[ERROR] json.Unmarshal %v" , err )
117+ return false
116118 }
117119 if diff := deep .Equal (& j , & j2 ); diff != nil {
118120 log .Printf ("[DEBUG] deep equal not passed: %v" , diff )
@@ -130,9 +132,11 @@ func resourceMongoDBAtlasEventTriggers() *schema.Resource {
130132 var j , j2 interface {}
131133 if err := json .Unmarshal ([]byte (old ), & j ); err != nil {
132134 log .Printf ("[ERROR] json.Unmarshal %v" , err )
135+ return false
133136 }
134137 if err := json .Unmarshal ([]byte (new ), & j2 ); err != nil {
135138 log .Printf ("[ERROR] json.Unmarshal %v" , err )
139+ return false
136140 }
137141 if diff := deep .Equal (& j , & j2 ); diff != nil {
138142 log .Printf ("[DEBUG] deep equal not passed: %v" , diff )
You can’t perform that action at this time.
0 commit comments