Puppet: System Administration Automated

Support

Ticket #508: puppet-source.patch

File puppet-source.patch, 0.6 kB (added by luke, 2 years ago)

Patch written by Jon Nangle

  • source.rb

    old new  
    249249 
    250250            @parent.write { |f| f.print contents } 
    251251 
     252            # Refresh the file stat information and check for sync 
     253            @parent.stat(true) 
     254            @parent.each do |thing| 
     255                next unless thing.is_a? Puppet::State 
     256                next if thing == self 
     257 
     258                thing.retrieve 
     259                unless thing.insync? 
     260                    thing.sync 
     261                end 
     262            end 
     263 
    252264            if exists 
    253265                return :file_changed 
    254266            else