ah yes, maybe the config is a copy and not a reference to the node attribute.

could the change be moved down below L62, so it will be very obvious it's only moved for the copy so
`new_resource.type != 'mongos'` is preserved?