| The autoloader's module_directories method can return the same module multiple times, or more likely different versions of the same module. This can lead to situations where the autoloader loads a type from one version of the module, but a provider from a different version. The module_directories method should only return the first instance of the module in the modulepath, which is how other parts of puppet, eg Puppet::Pops::Loaders, file serving, load facts from modules, and PMT. |