<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Michael,<br>
      <br>
      On 17/08/12 17:20, Michael Gliwinski wrote:<br>
    </div>
    <blockquote cite="mid:11699619.Gy4zeEAIi9@hgis96" type="cite">
      <pre wrap="">Hi All,

The post-modification command in enforce file content technique 
(checkGenericFileContent/3.0) is currently only executed if content was 
enforced/added, but not when deletion or regex replacement was made.  Is this 
by design?  I.e. would it be undesirable to also run it after deletion or 
replacement?

I can work around it by also inserting a comment line, but was wondering if it 
would make sense to change it to also run in other scenarios?

If so, I'll file a bug and can work on a patch.
</pre>
    </blockquote>
    <br>
    That's definitely a bug. I agree the post-modification hook should
    be executed after *any* modifiction (thus it's change). Well
    spotted!<br>
    <br>
    Please go ahead and file a bug. The best way to submit a patch is
    via a Github Pull Request - just ask if you need some guidance on
    that, I'm happy to help :)<br>
    <br>
    Thanks!<br>
    Jonathan<br>
    <div class="moz-signature">-- <br>
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <style type="text/css">
<!--
   a.redlink:link { color: #962322; }
   a.redlink:visited { color: #962322; }
  .sig { font-family: sans-serif; font-size: small; }
  .sigsmall { font-family: sans-serif; font-size: x-small; }
-->
</style>
      <table cellpadding="0" cellspacing="2" width="380" border="0">
        <tbody>
          <tr>
            <td colspan="2">
              <hr></td>
          </tr>
          <tr>
            <td colspan="2"><b><img alt=""
                  src="cid:part1.02030006.04030906@normation.com"
                  height="50" align="left" hspace="10" width="50">
                <span class="sig">Jonathan CLARKE</span></b><br>
              <span class="sig"><i>CTO - Directeur technique</i></span><br>
              <span class="sig"><a class="redlink"
                  href="http://www.normation.com">Normation</a></span> </td>
          </tr>
          <tr>
            <td colspan="2">
              <hr></td>
          </tr>
          <tr>
            <td colspan="2"><span class="sigsmall"><b>87 rue de Turbigo,
                  75003 Paris, France</b></span></td>
          </tr>
          <tr>
            <td><span class="sigsmall">Telephone:</span></td>
            <td><span class="sigsmall">+33 (0)1 83 62 41 24</span></td>
          </tr>
          <tr>
            <td><span class="sigsmall">Mobile:</span></td>
            <td><span class="sigsmall">+33 (0)6 99 60 03 10</span></td>
          </tr>
          <tr>
            <td colspan="2">
              <hr></td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>