Hi, I would like my instance type template (m1.small.erb) to have conditions based on image_id coming from the repository. Something like:
<% if erb_vm_info[:img_id] = 1 %> CONTEXT = [ VAR1="foo", VAR2="bar" <% end %> <% if erb_vm_info[:img_id] = 2 %> CONTEXT = [ VAR1="toto", VAR2="titi" <% end %> Where 1 and 2 are the image id returned by oneimage list. What is the proper syntax/way to do this ? thanks, -sebastien -- --- Sebastien Goasguen, Associate Professor School of Computing Clemson University 864-553-4734. Google Voice: (864)-869-8683 http://sites.google.com/site/runseb/ _______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org