I added a check for peer existence. The second argument in those two calls is an existence variable.

https://github.com/benbjohnson/etcd/commit/063f3b574c0e673009aba9ddcb99b387dddb5408