Forum: CFEngine Help
Subject: Re: String in list from module truncated to 256 characters
Author: btomasini
Link to topic: https://cfengine.com/forum/read.php?3,27413,27439#msg-27439
The issue appears when the string is an element in a list. See below:
body common control
{
bundlesequence => { "test" };
}
bundle agent test
{
vars:
"foo" string =>
"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222223333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333";
commands:
"/home/ubuntu/setvar"
module => "true";
reports:
cfengine::
"foo from vars = $(foo)";
"bar from module = $(setvar.bar)";
}
With setvar:
#!/bin/bash
echo "@bar=
{\"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222223333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333\"}"
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine