Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why ifelapsed isn't taken into account when insert_lines is used?

7 views
Skip to first unread message

zer...@gmail.com

unread,
Sep 29, 2013, 4:11:20 PM9/29/13
to
Having the following bundle:

vars:
any::
"state_file" string => "$(g.state_custom_dir)/bundle_cfengine_ping";

files:
"$(state_file)"
edit_line => insert_lines("$(sys.date)"),
edit_defaults => empty,
classes => if_repaired("bundle_cfengine_ping_changed_state"),
create => "true",
action => action_daily;

body action action_daily {
ifelapsed => "1440";
}

The `files` promise is checked every run, regardless of specified `ifelapsed`.

Why is that?

The original task is:

to run a `report` promise with unique text (it changes from run to run, assume it as `$(sys.date)`)daily.
0 new messages