Feature flag for a provider?

Wayne Witzel wayne.witzel at canonical.com
Wed Apr 22 13:00:34 UTC 2015


I've been told to place cloudsigma provider behind a feature flag, but the
result of that is that the provider is not registered unless the env
variable for cloudsigma is set.

So after wrapping the registration of the provider in the feature flag
(see:
https://github.com/juju/juju/commit/0a2cf42dcf051fe43bd803ebb144358723b4af82),
the tests no longer pass, since there is no registered provider for
cloudsigma. Manually calling s.SetFeatureFlag(feature.CloudSigma) from the
Suite and/or Test setup methods doesn't help since by that point the "init"
for each provider has already been run.

Looking for suggestions? My thought is that the flag isn't needed since by
nature providers are contained and their code is only called if you
explicitly use the provider.

-- 
Wayne Witzel III
wayne.witzel at canonical.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20150422/30175707/attachment.html>


More information about the Juju-dev mailing list