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

Butler: add support for write-once-compare-same outputs

    XMLWordPrintable

    Details

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

      Description

      Want to be able to write to a file and be sure that the file is 1. locked and 2. if that content exists, make sure that it is the same (and if it's not the same then respond - no op, or throw)

      Examples of target files are policy (soon to be "formerly paf", see DM-4171), and config, and schema files.

      write function should look like the butler.put method, but also take a comparison method. Comparison could be optional and default to __eq__.

      (this existed in trac: https://dev.lsstcorp.org/trac/ticket/2789)

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              npease Nate Pease
              Watchers:
              Nate Pease
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: