On Wed, 13 Jul 2016 09:03:09 -0700 (PDT) Nick Anderson
<[email protected]> wrote:
NA> What would you expect to get when you have a tag without = in it?
NA> "myvar" string => "value", meta => { "inventory", "attribute_name=my
special inventory thing" };
NA> "inventory_tags" slist => getvariablemetatags("myvar", "inventory");
NA> An empty list?
NA> A list with a single element of empty string? { "" }
NA> Skip defining the variable? <- my preference
The function will fail if the variable doesn't exist. I don't think it
should fail otherwise, since `meta` attributes only get set once.
If you request key "inventory" but there is no tag starting with
"inventory=" then I think you should get an empty list.
Ted
--
You received this message because you are subscribed to the Google Groups
"dev-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dev-cfengine/8760s9wljs.fsf%40lifelogs.com.
For more options, visit https://groups.google.com/d/optout.