Null provider and failing early

Andrew Wilkins andrew.wilkins at canonical.com
Mon Aug 26 23:50:00 UTC 2013


On Tue, Aug 27, 2013 at 8:44 AM, Tim Penhey <tim.penhey at canonical.com>wrote:

> Perhaps we should have a sanity-check type callback into the provider
> with the constraints at the time we want to add a machine.  This would
> give the null provider the early fail mechanism, and could also allow
> other providers to error if people as asking for constraints that really
> don't make sense.
>

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20130827/25ea1302/attachment.html>


More information about the Juju-dev mailing list