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

Puppet Module Tool gives unhelpful error message for bad module name

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      The "puppet module install <author-module>" command prints a better error if the author component of the name is omitted.

      Description

      Here is an example of the output from PMT when given a nonexistent module name:

      [root@sn53cdct9ich4pd ~]# puppet module install ntp
      Notice: Preparing to install into /etc/puppetlabs/puppet/environments/production/modules ...
      Notice: Downloading from https://forgeapi.puppetlabs.com ...
      Error: Request to Puppet Forge failed.
      The server being queried was https://forgeapi.puppetlabs.com/v3/releases?module=ntp&module_groups=base+pe_only
      The HTTP response we received was '400 Bad Request'

      It would be nice if the error message could, at a minimum, say something like "Module ntp not found."

      It would be even nicer if PMT could query the available modules, do some fuzzy matching, and suggest alternatives, the way that some Linux package managers do. So the error would be something like "Module ntp not found. Did you mean puppetlabs/ntp?"

        Attachments

          Activity

            People

            Assignee:
            josh Josh Cooper
            Reporter:
            alex.chamberlain Alex Chamberlain
            QA Contact:
            John Duarte John Duarte
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support