Puppet: System Administration Automated

Puppet Training Schedule
Next Class July 27-29
New York, New York
Discount before July 1st

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, 1 year 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