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

butler._addParents(self, repoDataList) ignores mapperArgs

    Details

    • Type: Story
    • Status: Invalid
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: butler
    • Labels:
      None
    • Templates:
    • Team:
      Data Access and Database

      Description

      When passing arguments such as -calibRoot XXX to a command such as createCalibs.py it is ignored when the butler calls _addParents. I don't understand exactly what this call is doing, but it fails to pass the calibRoot down with the result that the butler gets instantiated using the default calibRoot which is incorrect.

      The obvious fix is to change line 855 of butler.py (in _addParents) to:

                      args = RepositoryArgs(cfgRoot=repoParentCfg.root, mode='r',
                                            mapperArgs=repoData.repoArgs.mapperArgs)
      

      although I think that there's another similar bug that I haven't yet had a chance to get to the bottom of. I'll edit this ticket when I get a chance.

      The how to repeat should be the same as DM-11284 but I haven't had a chance to check.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rhl Robert Lupton
                Watchers:
                John Swinbank, Nate Pease, Robert Lupton
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel