Browse Source

Change token example to use returned value only

The discovery.etcd.io/new already returns a complete URL containing the host, so there is no need to specify it on the command line.
Jan-Erik Rediger 12 years ago
parent
commit
c6910a96de
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Documentation/cluster-discovery.md

+ 2 - 2
Documentation/cluster-discovery.md

@@ -20,8 +20,8 @@ Here's a full example:
 
 ```
 TOKEN=$(curl https://discovery.etcd.io/new)
-./etcd -name instance1 -peer-addr 10.1.2.3:7001 -addr 10.1.2.3:4001 -discovery https://discovery.etcd.io/$TOKEN
-./etcd -name instance2 -peer-addr 10.1.2.4:7002 -addr 10.1.2.4:4002 -discovery https://discovery.etcd.io/$TOKEN
+./etcd -name instance1 -peer-addr 10.1.2.3:7001 -addr 10.1.2.3:4001 -discovery $TOKEN
+./etcd -name instance2 -peer-addr 10.1.2.4:7002 -addr 10.1.2.4:4002 -discovery $TOKEN
 ```
 
 ## Running Your Own Discovery Endpoint