openstack-manuals/doc/common/samples/server-scheduler-hints4.json
Roger Luethi 37ad5d3ebe Make JSON files more readable
JSON formatting can be optimized for size or for readability. The JSON
files in openstack-manuals favor readability (for obvious reasons).
Unlike typical JSON formatted for reading (see Wikipedia article on
JSON, or Python's JSON output), however, the files have no space after
the name-separator, making them somewhat harder to read.

This changeset adds the missing space after the name-separator.

It also changes indenting from 3 to 4 spaces (matching our conventions
for Python and shell code).

The order of keys (which doesn't matter for the software parser) has
been preserved, because the order may be intentional (to help human
readers).

For instance:

   "uuid":"d8e02d56-2648-49a3-bf97-6be8f1204f38",

becomes:

    "uuid": "d8e02d56-2648-49a3-bf97-6be8f1204f38",

It also changes a few overly long empty sets. For instance:

   "volume:create":[

   ],

    becomes:

    "volume:create": [],

Change-Id: I559907e72578e6fb1a1a6895bd005ad9b22210d7
2014-05-04 07:57:04 +02:00

11 lines
239 B
JSON

{
"server": {
"name": "server-1",
"imageRef": "cedef40a-ed67-4d10-800e-17455edce175",
"flavorRef": "1"
},
"os:scheduler_hints": {
"build_near_host_ip": "192.168.1.1",
"cidr": "24"
}
}