Issue #22458 has been updated by Adrien Thebo. Status changed from In Topic Branch Pending Review to Merged - Pending Release Target version set to 3.4.0
Merged into master in 15e81ed; this should be released in 3.4.0. ---------------------------------------- Bug #22458: jobsearch in launchd service provider fails when it gets called a seconds time https://projects.puppetlabs.com/issues/22458#change-97911 * Author: Thomas Bartelmess * Status: Merged - Pending Release * Priority: Normal * Assignee: * Category: Darwin * Target version: 3.4.0 * Affected Puppet version: * Keywords: * Branch: https://github.com/puppetlabs/puppet/pull/1883 ---------------------------------------- When the jobsearch function in the launchd service provider (lib/puppet/provider/service/launchd.rb) gets called with the same argument a second time, it fails because the job is not getting added to the label_to_path_map. 1.9.3-p286 :001 > require 'puppet' => true 1.9.3-p286 :002 > ld = Puppet::Type.type(:service).provider(:launchd) => Puppet::Type::Service::ProviderLaunchd 1.9.3-p286 :003 > ld.jobsearch('com.apple.syslogd') => {"com.apple.syslogd"=>"/System/Library/LaunchDaemons/com.apple.syslogd.plist"} 1.9.3-p286 :004 > ld.jobsearch('com.apple.syslogd') Puppet::Error: Unable to find launchd plist for job: com.apple.syslogd from /Users/tbartelmess/.rvm/gems/ruby-1.9.3-p286/gems/puppet-3.2.2/lib/puppet/provider/service/launchd.rb:145:in `jobsearch' from (irb):4 from /Users/tbartelmess/.rvm/rubies/ruby-1.9.3-p286/bin/irb:16:in `<main>' -- 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. For more options, visit https://groups.google.com/groups/opt_out.
