Forum: CFEngine Help
Subject: Re: Avoid warning if file does not exist
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26654,26670#msg-26670

Hi, 


Using "classes" to define class, I can't use defined class like this (to make a 
loop over all NIC configuration found) :


        classes:
                "nic_$(g.nic_default)_config_exists" expression => 
fileexists("$(g.location_nic_default_configuration)/ifcfg-$(g.nic_default)");


        reports:
                nic_$(nic_default)_config_exists::
                #nic_eth0_config_exists::
                        "test";

(comment work, but first line cause syntax error ... 

I continue to search ...

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

Reply via email to