diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/type/service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/type/service.rb b/lib/puppet/type/service.rb index 6d11dae99..a50af8ead 100644 --- a/lib/puppet/type/service.rb +++ b/lib/puppet/type/service.rb @@ -130,8 +130,8 @@ module Puppet def initialize(hash) super - unless @searchpaths.length >= 0 - raise Puppet::Error( + unless defined? @searchpaths and @searchpaths.length >= 0 + raise Puppet::Error.new( "You must specify a valid search path for service %s" % self.name ) |
