fix replicaset name to come from new_resource

I accidentally screwed up and referenced the nonexistent local variable `replicaset` when I wanted `new_resource.replicaset`. This fixes that.