this.promiser
does work in files promises. but not necessarily EVERYWHERE, so where it does not work you need to open a ticket. It’s really helpful if you provide standalone examples illustrating specific places it does not work, and better yet if they come in the form of an acceptance test.
bundle agent __main__
{
files:
"/tmp/test0.txt" content => "Goodbye";
"/tmp/test0.txt"
content => "HELLO",
unless => fileexists( $(this.promiser) );
reports:
"/tmp/test0.txt" printfile => cat( $(this.promiser) );
}
info: Created file '/tmp/test0.txt', mode 0600 info: Updated file '/tmp/test0.txt' with content 'Goodbye' R: /tmp/test0.txt R: Goodbye