Hi,

Sorry for the possibly dense question, but how do I get a list
containing all the values of an associative array? I know the
getindices() function, but I can't find a similar getvalues() one.

My use case is that I have something like this:

  # Files to edit
  "files[sysctlconf]" string => "/etc/sysctl.conf";
  "files[inittab]" string => "/etc/inittab";
  "files[sshdconfig]" string => "/etc/ssh/sshd_config";

I would like to automatically get all the filenames in a list so I can
pass them to another bundle, for automatically doing backups before
making any changes.

Thanks,
--Diego
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to