summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-05-12 12:02:21 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-05-12 12:02:21 -0700
commit058cc39227112cefc637d38fd67d471945b2d4aa (patch)
tree9bb4a6f963f973b439e0dbe5c348e9497aef06fe /lib
parentf80afbe72b848fe4ed81d8116d4eeb494aa6f61e (diff)
parent1f438da968e1583d900903407c2e5b17648fa937 (diff)
downloadpuppet-058cc39227112cefc637d38fd67d471945b2d4aa.tar.gz
puppet-058cc39227112cefc637d38fd67d471945b2d4aa.tar.xz
puppet-058cc39227112cefc637d38fd67d471945b2d4aa.zip
Merge branch '2.6.x' into 2.7.next
Fix conflicts in the changelog, and one agent spec in favour of the 2.7.next version of the code. Paired-With: Jacob Helwig <jacob@puppetlabs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet.rb3
-rw-r--r--lib/puppet/application/agent.rb4
-rwxr-xr-xlib/puppet/provider/mount/parsed.rb2
3 files changed, 4 insertions, 5 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb
index e20874b61..bcac94d45 100644
--- a/lib/puppet.rb
+++ b/lib/puppet.rb
@@ -59,8 +59,7 @@ module Puppet
# configuration parameter access and stuff
def self.[](param)
- case param
- when :debug
+ if param == :debug
return Puppet::Util::Log.level == :debug
else
return @@settings[param]
diff --git a/lib/puppet/application/agent.rb b/lib/puppet/application/agent.rb
index fc8616817..19849c57a 100644
--- a/lib/puppet/application/agent.rb
+++ b/lib/puppet/application/agent.rb
@@ -378,8 +378,8 @@ Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2.0 License
end
def setup_listen
- unless FileTest.exists?(Puppet[:authconfig])
- Puppet.err "Will not start without authorization file #{Puppet[:authconfig]}"
+ unless FileTest.exists?(Puppet[:rest_authconfig])
+ Puppet.err "Will not start without authorization file #{Puppet[:rest_authconfig]}"
exit(14)
end
diff --git a/lib/puppet/provider/mount/parsed.rb b/lib/puppet/provider/mount/parsed.rb
index 11c5e21a9..7c3f41bbd 100755
--- a/lib/puppet/provider/mount/parsed.rb
+++ b/lib/puppet/provider/mount/parsed.rb
@@ -18,7 +18,7 @@ Puppet::Type.type(:mount).provide(
commands :mountcmd => "mount", :umount => "umount"
- case Facter["operatingsystem"]
+ case Facter.value(:operatingsystem)
when "Solaris"
@fields = [:device, :blockdevice, :name, :fstype, :pass, :atboot, :options]
else