I believe that's what "cf_null" is supposed to be for: http://cfengine.com/manuals/cf3-Reference#Special-list-value-cf_005fnull
But it's not truly an empty list, just for iteration. --Diego On Aug 1, 2012, at 4:39 PM, Ted Zlatanov <t...@lifelogs.com> wrote: > On Wed, 1 Aug 2012 22:48:35 +0200 (CEST) neilhwatson wrote: > > n> Empty lists seemed to be allowed: > > No, unfortunately, I don't think you can get an empty slist with regular > syntax. I give you... the war of the spaces! > > body common control > { > bundlesequence => { "test" }; > } > > bundle agent test > { > vars: > "spaces" slist => splitstring("", " ", "100"); > "spaces2" slist => { }; > > reports: > cfengine:: > "spaces '$(spaces)'"; > "spaces2 '$(spaces2)'"; > } > > => > > Warning: Variable body for "spaces2" seems incomplete > Promise (version not specified) belongs to bundle 'test' in file > '/var/tmp/test.cf' near line 10 > Warning: Variable body for "spaces2" seems incomplete > Promise (version not specified) belongs to bundle 'test' in file > '/var/tmp/test.cf' near line 10 > Warning: Variable body for "spaces2" seems incomplete > Promise (version not specified) belongs to bundle 'test' in file > '/var/tmp/test.cf' near line 10 > Warning: Variable body for "spaces2" seems incomplete > Promise (version not specified) belongs to bundle 'test' in file > '/var/tmp/test.cf' near line 10 > Warning: Variable body for "spaces2" seems incomplete > Promise (version not specified) belongs to bundle 'test' in file > '/var/tmp/test.cf' near line 10 > Warning: Variable body for "spaces2" seems incomplete > Promise (version not specified) belongs to bundle 'test' in file > '/var/tmp/test.cf' near line 10 > R: spaces '' > R: spaces2 '$(spaces2)' > Warning: Variable body for "spaces2" seems incomplete > Promise (version not specified) belongs to bundle 'test' in file > '/var/tmp/test.cf' near line 10 > Warning: Variable body for "spaces2" seems incomplete > Promise (version not specified) belongs to bundle 'test' in file > '/var/tmp/test.cf' near line 10 > Warning: Variable body for "spaces2" seems incomplete > Promise (version not specified) belongs to bundle 'test' in file > '/var/tmp/test.cf' near line 10 > Warning: Variable body for "spaces2" seems incomplete > Promise (version not specified) belongs to bundle 'test' in file > '/var/tmp/test.cf' near line 10 > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine