I looked at this today, and although it could be nice, it cannot currently work as the name's type is checked too soon before variable expansion kicks in. This might be reconsidered one day in the future if it proves useful.
Matt Richards wrote: > Greetings: > > This is invalid? I suppose it should be, it is a little nutty: > > bundle agent run_bundle(bundle_name) { > > methods: > > "any" usebundle => "$(bundle_name)", > comment => "run bundle $(bundle_name)"; > > > } > > % cf-agent -K > Undeclared promise bundle "$(bundle_name)()" was referenced in a promise > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine -- Mark Burgess ------------------------------------------------- Professor of Network and System Administration Oslo University College, Norway Personal Web: http://www.iu.hio.no/~mark Office Telf : +47 22453272 ------------------------------------------------- _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine