Puppet: System Administration Automated

Support

Ticket #1276: 0001-Default-service-pattern-match-with-word-boundaries.patch

File 0001-Default-service-pattern-match-with-word-boundaries.patch, 1.4 kB (added by madduck, 6 months ago)

git patch against master

  • a/lib/puppet/type/service.rb

    old new  
    145145                 
    146146                The pattern can be a simple string or any legal Ruby pattern." 
    147147 
    148             defaultto { @resource[:binary] || @resource[:name] } 
     148            defaultto { "/\b%sd?\b/" % [@resource[:binary] || @resource[:name]] } 
    149149        end 
    150150        newparam(:restart) do 
    151151            desc "Specify a *restart* command manually.  If left