HomePhorge

Fix Puppet::Util.execute is deprecated warning
d3f3088fe14dUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fix Puppet::Util.execute is deprecated warning

Without this patch applied the 3.0rc branch gives this warning when a
plugin sync file has changed:

jeff@pe-debian6:~$ puppet agent --test
Info: Retrieving plugin
Warning: Puppet::Util.execute is deprecated; please use Puppet::Util::Execution.execute
   (at /workspace/src/puppet/lib/puppet/util/diff.rb:14:in `diff')
/File[/home/jeff/.puppet/var/lib/puppet/cloudpack.rb]/content:
--- /home/jeff/.puppet/var/lib/puppet/cloudpack.rb      2012-06-28 03:40:01.000000000 -0700
+++ /tmp/puppet-file20120628-1955-99huz5-0      2012-06-28 03:46:39.000000000 -0700
@@ -1,5 +1,4 @@
 require 'tempfile'
-require 'rubygems'
 require 'guid'
 require 'fog'
 require 'net/ssh'

This patch fixes the issue by calling the recommended method in the
deprecation warning.

Details

Provenance
Jeff McCune <jeff@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU7f993b7416de: Merge pull request #890 from zaphod42/maint/3.0rc/pluginsync-tests-on-windows
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff McCune <jeff@puppetlabs.com> committed rPUd3f3088fe14d: Fix Puppet::Util.execute is deprecated warning (authored by Jeff McCune <jeff@puppetlabs.com>).Jun 28 2012, 8:20 PM