<div dir="ltr"><div class="gmail_extra">Hello<br><br><div class="gmail_quote">On Fri, Jun 20, 2014 at 12:48 PM, Radoslav Gerganov <span dir="ltr"><<a href="mailto:rgerganov@vmware.com" target="_blank">rgerganov@vmware.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<div class=""><br>
> On Wed, Jun 18, 2014 at 4:47 AM, Gary Kotton <<a href="mailto:gkotton@vmware.com">gkotton@vmware.com</a>> wrote:<br>
> > Hi,<br>
> > I have encountered a problem with string substitution with the nova<br>
> > configuration file. The motivation was to move all of the glance settings<br>
> > to<br>
> > their own section (<a href="https://review.openstack.org/#/c/100567/" target="_blank">https://review.openstack.org/#/c/100567/</a>). The<br>
> > glance_api_servers had default setting that uses the current glance_host<br>
> > and<br>
> > the glance port. This is a problem when we move to the ‘glance’ section.<br>
> > First and foremost I think that we need to decide on how we should denote<br>
> > the string substitutions for group variables and then we can dive into<br>
> > implementation details. Does anyone have any thoughts on this?<br>
> > My thinking is that when we use we should use a format of $<group>.<key>.<br>
> > An<br>
> > example is below.<br>
> ><br>
><br>
</div><div class="">> Do we need to set the variable off somehow to allow substitutions that<br>
> need the literal '.' after a variable? How often is that likely to<br>
> come up?<br>
<br>
</div>I would suggest to introduce a different form of placeholder for this like:<br>
<br>
  default=['${glance.host}:${glance.port}']<br>
<br>
similar to how variable substitutions are handled in Bash.  IMO, this is more readable and easier to parse.<br>
<br>
-Rado</blockquote></div><div class="gmail_extra"><br></div>I couldn't help but trying implement this: <a href="https://review.openstack.org/103884">https://review.openstack.org/103884</a></div><div class="gmail_extra">

<br></div><div class="gmail_extra">This change allows both ${glance.host} and ${.host} variants.<br clear="all"><div><br></div>-- <br><br><div>Kind regards, Yuriy.</div>
</div></div>