Issue #22458 has been reported by Thomas Bartelmess.
----------------------------------------
Bug #22458: jobsearch in launchd service provider fails when it gets called a
seconds time
https://projects.puppetlabs.com/issues/22458
* Author: Thomas Bartelmess
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category: Darwin
* Target version:
* Affected Puppet version:
* Keywords:
* Branch:
----------------------------------------
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.