# Redmine#4683: dynamic inputs should work from a data container

body common control
{
      #ignore_missing_inputs => "true";
      inputs => { "../../default.sub.cf", "$(config.myfile)" };
      bundlesequence  => { default("$(this.promise_filename)") };
}

bundle common config
{
  vars:
      "c" data => parsejson('{ "file": "dynamic.sub" }');
      "myfile" string => "$(c[file])";

  reports:
   DEBUG::
     "myfile $(myfile)";
}

bundle agent init
{
}

bundle agent test
{
}

bundle agent check
{
  reports:
      "$(this.promise_filename) Pass";
}
