/facepalm! Thanks for pointing that out. I knew that but it's an easy thing to overlook because it *looks* right. :)
Strangely enough, though, I'm seeing two weird things relating to this. 1) In my original example, I have fixed the getindices() call and I noticed that I didn't have the common bundle "g" listed in the bundlesequence, yet the output was exactly right. Any explanation for that? 2) In a similar example except where the common bundle is in the "bundlesequence" but is contained in another file that is included in "inputs", I get four copies of the following message that precede otherwise correct output: Function getindices was promised an array called "asset_cache" in scope "dg" but this was not found It does appear to have found it, since the output has the data read in from the cache file, so I don't understand why this message is appearing. Thoughts? Thanks, Justin -----Original Message----- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of fo...@cfengine.com Sent: Thursday, March 25, 2010 6:52 AM To: help-cfengine@cfengine.org Subject: Cfengine Help: Re: Accessing global arrays? Forum: Cfengine Help Subject: Re: Accessing global arrays? Author: mark Link to topic: https://cfengine.com/forum/read.php?3,16664,16669#msg-16669 The problem is in your syntax. You wrote getindices("$(variable)") when what you want is getindices("variable") These are two quite different things. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine 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 Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine