Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 294440 Details for
Bug 432142
0.24.1 dies with "is already being managed" error
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix 0.24.1 "already managed" bug
puppet-0.24.1-double-manage.diff (text/plain), 1.82 KB, created by
Frank Sweetser
on 2008-02-09 01:33:28 UTC
(
hide
)
Description:
Fix 0.24.1 "already managed" bug
Filename:
MIME Type:
Creator:
Frank Sweetser
Created:
2008-02-09 01:33:28 UTC
Size:
1.82 KB
patch
obsolete
>commit 8a649ff28a46afe6b1e4dd002ac90c93651edfa3 >Author: Luke Kanies <luke@madstop.com> >Date: Sun Jan 20 21:21:37 2008 -0800 > > I think I've finally fixed #959, by having the Settings > class skip any resources that are already in memory. > >diff --git a/lib/puppet/util/settings.rb b/lib/puppet/util/settings.rb >index b672d95..ff019ed 100644 >--- a/lib/puppet/util/settings.rb >+++ b/lib/puppet/util/settings.rb >@@ -510,18 +510,19 @@ class Puppet::Util::Settings > end > > # Only files are convertable to transportable resources. >- if obj.respond_to? :to_transportable >- next if value(obj.name) =~ /^\/dev/ >- transobjects = obj.to_transportable >- transobjects = [transobjects] unless transobjects.is_a? Array >- transobjects.each do |trans| >- # transportable could return nil >- next unless trans >- unless done[:file].include? trans.name >- @created << trans.name >- objects << trans >- done[:file][trans.name] = trans >- end >+ next unless obj.respond_to? :to_transportable >+ next if value(obj.name) =~ /^\/dev/ >+ next if Puppet::Type::File[obj.value] # skip files that are in our global resource list. >+ >+ transobjects = obj.to_transportable >+ transobjects = [transobjects] unless transobjects.is_a? Array >+ transobjects.each do |trans| >+ # transportable could return nil >+ next unless trans >+ unless done[:file].include? trans.name >+ @created << trans.name >+ objects << trans >+ done[:file][trans.name] = trans > end > end > end
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 432142
: 294440