Forum: Cfengine Help
Subject: Reports format differently for screen and e-mail
Author: babudro
Link to topic: https://cfengine.com/forum/read.php?3,18939,18939#msg-18939
Hello all.
I am trying to format my report output to be more readable in e-mails so admins
will know what is going on, and I am getting unexpected results. For example,
I have this:
reports:
svn_updated::
"
Cfengine Policies Updated
-------------------------
Source: $(jdi.cfengine_master)
Repository: SVN repository
Destination: $(jdi.short_hostname)
Directory: /var/cfengine/masterfiles
_________________________
";
update_erase_superfluous::
"
House-keeping
-------------
Superfluous files erased.
Host: $(sys.host)
Directory: /var/cfengine/masterfiles/
_____________";
When I manually run cf-agent and view it on the screen it shows exactly as I
entered it. When I leave it to run in the background the e-mail I receive has
the blank lines removed. If I simply put a dot or dash for a blank line
everything is okay, even if I have several lines with just a dot or dash they
all appear -- so it's not removing repeated lines as insert_lines does.
Has anyone else tried to design multi-line reports sections and found a way to
leave the blank lines intact? I searched the Reference Manual for clues, but
all the examples there are single-line reports.
Thanks!
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine