Re: variable resolution problem
Xander Cage <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
forgot to mention using sys.date instead works as expected... R: Time: Mon Jul 26 14:35:21 2021 - Bundle: do_what_i_say - Message: On Monday, July 26, 2021 at 2:23:31 PM UTC+2 Xander Cage wrote: > > hey, > > once again, basic principles make me struggle. > > so i have this (not global) var definded somewhere in my local "stdlib". > > root@aixtest01: /root/cfe_testbed # /var/cfengine/bin/cf-promises > --show-vars | grep udate > default:itsvrep_c.itsv_udate > 2021-07-26T14:20:03CEST source=promise > > i want to use the contents of that var to timestamp my reports. > > reports: > > "$(itsvrep_c.itsv_udate) / $(this.bundle) - Message: Path contains: > $(path)" ; > > > boom, not working, variable unresolved... > > root@aixtest01: /root/cfe_testbed # /var/cfengine/bin/cf-agent -KI -f ./ > python_symlink_test.cf > R: $(itsvrep_c.itsv_udate) / do_what_i_say - Message: Path contains: > > so, how to i address this var without making it global? > -- You received this message because you are subscribed to the Google Groups "help-cfengine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/fa549938-5457-4f78-a07e-9e66a37a0ce6n%40googlegroups.com.