Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Coremunity
-
Platform Core KANBAN
-
Enhancement
-
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?"