<div dir="ltr">On Tue, Aug 27, 2013 at 8:44 AM, Tim Penhey <span dir="ltr"><<a href="mailto:tim.penhey@canonical.com" target="_blank">tim.penhey@canonical.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Perhaps we should have a sanity-check type callback into the provider<br>
with the constraints at the time we want to add a machine. This would<br>
give the null provider the early fail mechanism, and could also allow<br>
other providers to error if people as asking for constraints that really<br>
don't make sense.<br></blockquote><div><br></div><div>I'm sort of thinking out aloud here: maybe this could used for checking environment-specific constraints too? Some kind of "VerifyMachineConstraints" method that will ensure your add-machine/--to constraints are valid for the current provider/environment. In this case constraints may be nil, but the null provider would just always return false.</div>
</div></div></div>