<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>My initial reaction is that sounds good, but how is it different then params, or maybe a hidden param? Maybe they are conditionally assigned? Conditional params would be awesome too though. If param 1 is not set, then param 2 is required...<br>
<br>
Thanks,<br>
Kevin <strong>
<div><font face="Tahoma" color="#000000" size="2"> </font></div>
</strong>
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b> Thomas Herve<br>
<b>Sent:</b> Thursday, March 31, 2016 1:40:33 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> [openstack-dev] [Heat] Re-evaluate conditions specification<br>
</font><br>
<div></div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi all,<br>
<br>
As the patches for conditions support are incoming, I've found<br>
something in the code (and the spec) I'm not really happy with. We're<br>
creating a new top-level section in the template called "conditions"<br>
which holds names that can be reused for conditionally creating<br>
resource.<br>
<br>
While it's fine and maps to what AWS does, I think it's a bit<br>
short-sighted and limited. What I have suggested in the past is to<br>
have a "variables" (or whatever you want to call it) section, where<br>
one can declare names and values. Then we can add an intrinsic<br>
function to retrieve data from there, and use that for examples for<br>
conditions.<br>
<br>
It solves that particular issue, and it opens some interesting<br>
possibilities for reducing duplication in the template, as we could<br>
build arbitrary values out of parameters or attributes that can then<br>
be reused several times.<br>
<br>
Thoughts?<br>
<br>
-- <br>
Thomas<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div>
</span></font>
</body>
</html>