<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 13, 2012, at 12:34 PM, Adam Gandelman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div text="#000000" bgcolor="#FFFFFF">
On 04/13/2012 10:50 AM, Dolph Mathews wrote:
<blockquote cite="mid:CACgyLQahvWncisy-HA09mxOTS7d86+3xmL4tygsfvE2hB=mkUw@mail.gmail.com" type="cite">While $(tenant_id)s is certainly the documented
syntax, it appears that the SQL catalog backend (and *only* the
SQL catalog backend, as far as I can tell) explicitly supports
both $(tenant_id)s and %(tenant_id)s:
<div><br>
</div>
<div><a moz-do-not-send="true" href="https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/sql.py#L163">https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/sql.py#L163</a></div>
<div><br>
</div>
<div>Perhaps Adam Gandelman has some insight?</div>
<div><br>
</div>
<div>-Dolph</div>
</blockquote>
<br>
Dolph-<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
No, the same is supported in the case of templated catalog as well,
which is what the SQL catalog was largely based off:<br>
<br>
<a href="https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/templated.py#L115">https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/templated.py#L115</a><br>
<br>
Just tested that "sed -i 's/\$/%/g'
/etc/keystone/default_catalog.templates" still produces a functional
service catalog when configured to use the templated backend.<br>
<br>
Seeing as both are supported, perhaps it would be better for docs to
be updated to refer to the use of % instead of $ to avoid people
running into problems with the $() sub-shell?<br>
<br></div></blockquote><br></div><div>The OpenStack Install and Deploy manual has some language about this (see last paragraph): <a href="http://docs.openstack.org/trunk/openstack-compute/install/content/elements-of-keystone-service-catalog-entry.html">http://docs.openstack.org/trunk/openstack-compute/install/content/elements-of-keystone-service-catalog-entry.html</a></div><div><br></div><div>This hasn't made its way into the admin docs yet, though.</div><div><br></div><div><br></div><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Take care,</div><div><br></div><div>Lorin</div><div>--</div><div>Lorin Hochstein</div><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div><a href="https://www.nimbisservices.com/">www.nimbisservices.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline"></div></div></body></html>