heat-agents/heat-config-json-file
Martin André 9ce538b6ff Prevent trailing whitespace in rendered JSON
On python <3.4 the separator for json.dump() defaulted to (', ', ': ')
which may cause trailing whitespaces in rendered JSON files when used
with indent. This change sets the separator to (',', ': ') to prevent
trailing whitespaces with older versions of python.

See https://docs.python.org/2/library/json.html#basic-usage

Change-Id: I81fabd54659bdb28da43fb4900f19dd94a70336c
2017-01-13 12:07:51 +01:00
..
install.d Prevent trailing whitespace in rendered JSON 2017-01-13 12:07:51 +01:00
README.rst Add a hook to help write json files 2017-01-05 07:05:33 -05:00
element-deps Add a hook to help write json files 2017-01-05 07:05:33 -05:00

README.rst

A hook which helps write JSON files to disk for configuration or use with ad-hoc scripts. The data files are written to the named file location for each section listed under 'config'.

Multiple JSON files can be written out in this manner.

Example:

JsonConfig:

type: OS::Heat::StructuredConfig properties: group: json-file config: /tmp/foo: - bar - bar2

This would write out a JSON files at

/tmp/foo containing a JSON representation of ['bar', 'bar2'].