From a620ac831422a29b97aaf377bfc09163a2aeccf0 Mon Sep 17 00:00:00 2001 From: Geoffrey Grosenbach Date: Fri, 29 Jun 2018 18:27:48 -0700 Subject: [PATCH] Improve styling of discovery snippet Original `discovery` snippet had a `curl` command that mentioned multi-datacenter support. This removes part of the command that was incorrect. It adds styling for the `dc2` section of the JSON output that highlights the part of the query that relates to multiple data centers. --- website/source/discovery.html.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/source/discovery.html.erb b/website/source/discovery.html.erb index 55f77d494f..d144cef7c4 100644 --- a/website/source/discovery.html.erb +++ b/website/source/discovery.html.erb @@ -175,14 +175,13 @@ web-frontend.service.consul. 0 IN A 10.0.1.109
- $ curl http://localhost:8500/v1/catalog/datacenters -["dc1", "dc2"]$ curl http://localhost:8500/v1/catalog/nodes?dc=dc2 + $ curl http://localhost:8500/v1/catalog/nodes?dc=dc2 [ { "ID": "7081dcdf-fdc0-0432-f2e8-a357d36084e1", "Node": "10-0-1-109", "Address": "10.0.1.109", - "Datacenter": "dc2", + "Datacenter": "dc2", "TaggedAddresses": { "lan": "10.0.1.109", "wan": "10.0.1.109"