Issue #5823 has been updated by Daniel Pittman.

Assignee deleted (Daniel Pittman)

----------------------------------------
Bug #5823: Run mode can't be set by third party scripts or based on 
command-line arguments
https://projects.puppetlabs.com/issues/5823#change-92417

* Author: James Turnbull
* Status: Closed
* Priority: High
* Assignee: 
* Category: 
* Target version: 2.6.5
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
To get third-party scripts into the right mode we previously set Puppet[:name] 
to the required mode. This has now been changed to run_mode but it's been made 
read only:

<pre>
Puppet[:run_mode] = "master"
ArgumentError: You're attempting to set configuration parameter
$run_mode, which is read-only.
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:493:in 
`set_value'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:29:in `[]='
        from /usr/lib/ruby/site_ruby/1.8/puppet.rb:72:in `[]='
        from (irb):2
        from :0
</pre>

This greatly limits our ability to integrate with Puppet.


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to