Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-5146

generate daf_persistence Policy files need to be formatted for readability

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: daf_persistence
    • Labels:
      None

      Description

      right now the Policies get written as yaml all just dumped out in a line. The dumper need to format files for readability.

        Attachments

          Activity

          Hide
          wmwood-vasey Michael Wood-Vasey added a comment -

          In JSON module you can pretty-print easily enough:

          import json
          json.dump(data, outfile, sort_keys=True, indent=4)
          

          I don't know the full YAML options off the top of my head.

          Show
          wmwood-vasey Michael Wood-Vasey added a comment - In JSON module you can pretty-print easily enough: import json json.dump(data, outfile, sort_keys=True, indent=4) I don't know the full YAML options off the top of my head.

            People

            • Assignee:
              Unassigned
              Reporter:
              npease Nate Pease
              Watchers:
              Michael Wood-Vasey, Nate Pease
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel