| When running facter -p on windows with the puppetlabs/ciscopuppet module pluginsynced to the agent, facter is loading facter/cisco.rb from C:/ProgramData/PuppetLabs/puppet/cache/lib before setting up the $LOAD_PATH to load that file's dependencies from there. Please see the attached screenshot for the debug modifications I did and the results on the machine showing the issue. To make sure there is nothing wonky with the facter/cisco_nexus file itself, a require within a setcode worked fine. Regular agent runs work fine and do not show any errors. Desired Behaviour facter -p loads files from puppet's cache only once, after $LOAD_PATH has been properly initialised. |