On 08/10/2015 09:15 AM, Christian Linden wrote:
> Hi,
>
> if I run my promise solo, including:
> body common control
> {
> bundlesequence => { "c04_collect_inventories"};
> inputs =>
> {"/var/cfengine/masterfiles/libraries/
cfengine_stdlib.cf"};
> }
>
> by: cf-agent -KIvf /var/cfengine/inputs/R4Promises/c04CollectInventories.cf
>
> the cf-serverd log on the box I want to pull the file from tells me:
> 2015-08-10T16:02:32+0200 verbose: Checking policy with command
> '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/
promises.cf"'
> /var/cfengine/inputs/promises.cf:9:0: error: Duplicate definition of body
> control with type common
Duplicate definition of body control with type common indicates that you
have defined multiple body common controls. There is a body common ntrol
in /var/cfengine/inputs/
promises.cf, but you have also added a body
common control into a policy file (that is probably included into your
policy from
promises.cf).
There can be only one body common control (like highlander).
It looks like you added body common control to c04CollectInventories.cf
because you wanted to be able to use something from the standard library
and activate the policy file directly.