From b779fa4fe9b8a6e8aca41c7ed932dc55511cf9ac Mon Sep 17 00:00:00 2001 From: Trevor Wennblom Date: Wed, 10 Apr 2013 23:43:16 -0500 Subject: [PATCH] make json valid --- docsite/rst/api.rst | 32 ++++++++++++++++---------------- docsite/rst/moduledev.rst | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docsite/rst/api.rst b/docsite/rst/api.rst index b7b938fb0e..f037b1bc86 100644 --- a/docsite/rst/api.rst +++ b/docsite/rst/api.rst @@ -40,7 +40,7 @@ expressed in the 'ansible-modules' documentation.:: { "dark" : { "web1.example.com" : "failure message" - } + }, "contacted" : { "web2.example.com" : 1 } @@ -110,22 +110,22 @@ Each group's value should be either a hash/dictionary containing a list of each simply a list of host/IP addresses, like so:: { - 'databases' : { - 'hosts' : [ 'host1.example.com', 'host2.example.com' ], - 'vars' : { - 'a' : true + "databases" : { + "hosts" : [ "host1.example.com", "host2.example.com" ], + "vars" : { + "a" : true } }, - 'webservers' : [ 'host2.example.com', 'host3.example.com' ], - 'atlanta' : { - 'hosts' : [ 'host1.example.com', 'host4.example.com', 'host5.example.com' ], - 'vars' : { - 'b' : false + "webservers" : [ "host2.example.com", "host3.example.com" ], + "atlanta" : { + "hosts" : [ "host1.example.com", "host4.example.com", "host5.example.com" ], + "vars" : { + "b" : false }, - 'children': [ 'marietta', '5points' ], + "children": [ "marietta", "5points" ], }, - 'marietta' : [ 'host6.example.com' ], - '5points' : [ 'host7.example.com' ] + "marietta" : [ "host6.example.com" ], + "5points" : [ "host7.example.com" ] } .. versionadded: 1.0 @@ -137,9 +137,9 @@ hash/dictionary, or a hash/dictionary of variables to make available to template if the script does not wish to do this, returning an empty hash/dictionary is the way to go:: { - 'favcolor' : 'red', - 'ntpserver' : 'wolf.example.com', - 'monitoring' : 'pack.example.com' + "favcolor" : "red", + "ntpserver" : "wolf.example.com", + "monitoring" : "pack.example.com" } Example: The Cobbler External Inventory Script diff --git a/docsite/rst/moduledev.rst b/docsite/rst/moduledev.rst index 16c083024f..a8d8898be5 100644 --- a/docsite/rst/moduledev.rst +++ b/docsite/rst/moduledev.rst @@ -180,7 +180,7 @@ Let's test that module:: This should return something like:: - {"changed": True, "time": "2012-03-14 12:23:00.000307"} + {"changed": true, "time": "2012-03-14 12:23:00.000307"} Module Provided 'Facts' ```````````````````````