get_action_list: improve generated JSON output

* use ',' instead of ', ' as separator, this way the trailing
  whitespaces at the end of a line will be removed

* use an indent of 8 instead of 4, this way it is possible to paste
  the generated JSON output into the mapping.json file

Change-Id: I5232490afabf5024e573109d3fc8ba3a6a003a47
This commit is contained in:
Christian Berendt 2015-09-15 01:29:58 +02:00
parent ffe6524573
commit 834a5eb3a0

View File

@ -208,7 +208,7 @@ def get_mapping_for_service(service, client):
def print_mapping(mapping):
print(json.dumps(mapping, indent=4))
print(json.dumps(mapping, indent=8, separators=(',', ': ')))
if __name__ == "__main__":