Issue #10417 has been updated by Josh Cooper. Status changed from Accepted to In Topic Branch Pending Review Branch set to https://github.com/puppetlabs/puppet/pull/393
---------------------------------------- Bug #10417: No diff command on Windows https://projects.puppetlabs.com/issues/10417 Author: Josh Cooper Status: In Topic Branch Pending Review Priority: Normal Assignee: Josh Cooper Category: windows Target version: 2.7.x Affected Puppet version: 2.7.6 Keywords: Branch: https://github.com/puppetlabs/puppet/pull/393 If puppet is configured to show diffs, it will attempt to run the 'diff' command, which is not available on Windows. There is 'fc.exe' file compare, which is roughly equivalent. The diff arguments are also different. If show_diff is enabled (or if --noop mode is being used), then you will receive the following error: <pre> Executing 'diff -u C:/Splunk/etc/system/local/inputs.conf C:/Users/ml623/AppData/Local/Temp/puppet-file20111118-3304-81qt4z-0' C:/Ruby187/lib/ruby/gems/1.8/gems/win32-process-0.6.5/lib/win32/process.rb:889:in`create' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:336:in `execute_windows' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util.rb:374:in `execute' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/util/diff.rb:12:in `diff' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/content.rb:107:in `insync?' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/content.rb:152:in`write_temporarily' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/type/file/content.rb:106:in `insync?' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/property.rb:162:in `safe_insync?' C:/Ruby187/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:61:in`perform_changes' </pre> The workaround is to disable diffs, i.e. `show_diff = false`, or using the `--no-show_diff` command line argument. Note the `--test` command line argument will take precedence and cause diffs to be enabled. See <http://groups.google.com/group/puppet-users/browse_thread/thread/592807d1b10e55cb> -- 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 post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
