Hello all,

Is there a reason why we can use vars in classes definition

Like:

"$(user_names)_must_modified" expression => 
"!$(user_names)_comment_equal|!$(user_names)_homedir_equal|!$(user_names)_shell_equal|!$(user_names)_Gid_equal";

But cannot do the same thing with array variables

Like:
  "create_$(r_user[$(r_range)][$(username)])"         expression => 
"!$(r_user[$(r_range)][$(username)])_exist.!$(r_user[$(r_range)][$(username)])_uid_exist.$(r_user[$(r_range)][$(trgt)])"


I understand that the allowable characters for an expression does not include 
the "[" or "]" but it is a bit odd that the array are left out when the vars 
are not


My two cents,

Marco

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

Reply via email to