Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5626

Missing the dependencies key in metadata.json breaks puppet module tool

    Details

    • Type: Bug
    • Status: Ready for Engineering
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Modules, PMT
    • Labels:
      None
    • Template:
    • Team:
      Puppet Developer Experience

      Description

      The Problem

      If the metadata.json file is missing a dependencies key it renders the puppet module tool inoperable. By extension any spec tests that use forge modules also break.

      root@master:~ # puppet module list
      Error: No dependencies module metadata provided for pe_inifile
      Error: No dependencies module metadata provided for pe_inifile
      Error: Try 'puppet help module list' for usage
      

      The workaround

      Adding "dependencies": [] to metadata.json will make it work.

      The Suggested Solution

      PMT should handle the case where the dependencies key is missing better.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                ben.ford Ben Ford
                QA Contact:
                Eric Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support