[one-users] bug in context variables

Ruben S. Montero rsmontero at opennebula.org
Mon Feb 25 06:35:25 PST 2013


Makes sense, I've just filled an issue for this...

http://dev.opennebula.org/issues/1781

Thanks

Ruben


On Thu, Feb 21, 2013 at 9:59 AM, Rolandas Naujikas <
rolandas.naujikas at mif.vu.lt> wrote:

> Hi,
>
> I just found, that if context.sh variables contains character $ in value,
> then it is interpreted as variable name.
>
> As a workaround (partial) I put
>
>   sed -e "s/=\"/='/" -e "s/\"$/'/" < /mnt/context.sh > /tmp/context.sh
>   . /tmp/context.sh
>   rm /tmp/context.sh
>
> into my init.sh.
>
> Probably it would be better to escape $ and other characters in values or
> put values to single quotes (what makes difficult to pass single quotes
> itself in values also).
>
> Regards, Rolandas Naujikas
> ______________________________**_________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org
>
> --
> Ruben S. Montero, PhD
> Project co-Lead and Chief Architect
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
> <http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130225/3c5ed5f7/attachment-0002.htm>


More information about the Users mailing list