Issue #10417 has been updated by Josh Cooper. Description updated Assignee set to Josh Cooper
---------------------------------------- Bug #10417: No diff command on Windows https://projects.puppetlabs.com/issues/10417 Author: Josh Cooper Status: Accepted Priority: Normal Assignee: Josh Cooper Category: windows Target version: 2.7.x Affected Puppet version: 2.7.6 Keywords: Branch: 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 -- 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.
