Issue #5886 has been updated by Daniel Pittman.

Description updated
Status changed from Unreviewed to Closed

We use the ability to change run_mode at runtime.  It has nasty edge cases, and 
isn't strictly "defined" behaviour, but it works.
----------------------------------------
Refactor #5886: Run mode appears to be settable after initialization but there 
is no effect
https://projects.puppetlabs.com/issues/5886

Author: Paul Berry
Status: Closed
Priority: Normal
Assignee: 
Category: plumbing
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Note: this ticket is likely to be superseded by #5823, but I want to file it 
separately in case we change our minds in the future about how to address #5823.

The method Puppet::Application.run_mode() appears to let the application set 
the run mode at any time.  However, since the run mode is copied to 
$puppet_application_mode during initialization time, if you call 
Puppet::Application.run_mode() after initialization there is no effect.  This 
is terribly misleading.  Since allowing the run mode to be changed after the 
application has started is dangerous (see #5823 for details), we should simply 
raise an exception if code ever tries to change run mode after initialization.


-- 
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.

Reply via email to