Given two slists, "current_netgroups" and "valid_netgroups", I want to
construct a new slists where
$(netgroups_to_remove) = $(current_netgroups) - $(valid_netgroups)
$(netgroups_to_add) = $(valid_netgroups) - $(current_netgroups)
Is there currently a simple way to do this?
If this isn't easy, I think it would make for a nice addition to the
list of special functions, e.g.
"netgroups_to_remove" slist => slist_difference("current_netgroups",
"valid_netgroups");
"netgroups_to_add " slist => slist_difference("valid_netgroups",
"current_netgroups");
Functions for calculating slist intersections and for removing duplicate
values may also be useful, generally speaking.
--
Justin C. Lloyd
Unix Infrastructure Engineer
DigitalGlobe, An Imaging and Information Company
This electronic communication and any attachments may contain confidential and
proprietary
information of DigitalGlobe, Inc. If you are not the intended recipient, or an
agent or employee
responsible for delivering this communication to the intended recipient, or if
you have received
this communication in error, please do not print, copy, retransmit, disseminate
or
otherwise use the information. Please indicate to the sender that you have
received this
communication in error, and delete the copy you received. DigitalGlobe reserves
the
right to monitor any electronic communication sent or received by its
employees, agents
or representatives.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine