Issue #20072 has been updated by Matthaus Owens. Status changed from Merged - Pending Release to Closed Affected Facter version deleted (1.7.0-rc1)
Released in Facter 1.7.0-rc2 ---------------------------------------- Bug #20072: facter fails to redirect virt-what stderr to /dev/null on windows https://projects.puppetlabs.com/issues/20072#change-88878 * Author: Josh Cooper * Status: Closed * Priority: Normal * Assignee: * Category: * Target version: 1.7.0 * Keywords: windows * Branch: * Affected Facter version: ---------------------------------------- Run facter on windows and it outputs: <pre> Access is denied. Using Facter::Util::Resolution.exec with a shell built-in is deprecated. Most built-ins can be replaced with native ruby commands. If you really have to run a built-in, pass "cmd /c your_builtin" as a command </pre> The errors occur because commit 2f02c827d1ed58842eb005bff4fe633082f15d1e for #19989 redirected stderr to /dev/null, which results in facter doing: <pre> (rdb:1) %x{virt-what 2>/dev/null} Access is denied. "" </pre> On Windows, it needs to either use the NUL device or not try to redirect stderr: <pre> (rdb:1) %x{virt-what 2>NUL} "" </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
