<div dir="ltr">We chosen to use single quotes as the double quotes could be interpreted by the shell and break the contextualization in some cases [1].<div><br></div><div>It seems that this change is giving more problems than we thought and we are planning on generating two versions, one with single quotes and another with double quotes [2].</div>
<div><br></div><div>[1] <a href="http://dev.opennebula.org/issues/1781">http://dev.opennebula.org/issues/1781</a></div><div>[2] <a href="http://dev.opennebula.org/issues/2287">http://dev.opennebula.org/issues/2287</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 29, 2013 at 3:11 PM, Michael Curran <span dir="ltr"><<a href="mailto:michael.curran@connectsolutions.com" target="_blank">michael.curran@connectsolutions.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p>Separate thread so it gathers the right attention ---<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Found an issue -- which might not be one in *NIX , but apparently is in windows -- and hopefully its just the way I am calling out the variable??<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>I have <u></u><u></u></p>
<p><u></u> <u></u></p>
<p>HOSTNAME="$NAME" <u></u><u></u></p>
<p><u></u> <u></u></p>
<p>In my VM template -- this creates the following entry in the context.sh<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>HOSTNAME='some-name'<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>The windows powershell script I am using from the IEETA pages shows<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>HOSTNAME=$NAME <u></u><u></u></p>
<p><u></u> <u></u></p>
<p>And their context.sh shows<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>HOSTNAME=some-host<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Working with their PS script I found that windows wont interpret the HOSTNAME=some-name , unless the variable looks like this HOSTNAME="some-name" in context.sh
<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>OpenNebula creates the variable with only single quotes, not double quotes -- am I missing something in declaring the variable in the template??<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Michael Curran | connectsolutions | Lead Network Architect<u></u><u></u></p>
<p class="MsoNormal">Phone 614.568.2285 | Mobile 614.403.6320 | <a href="http://www.connectsolutions.com" target="_blank">
<span style="color:#0563c1">www.connectsolutions.com</span></a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Join us at OpenNebulaConf2013 in Berlin from the 24th to the 26th of September 2013!<br><br>Javier Fontán Muiños<br>Developer<br>OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a>
</div>