Comment 1 for bug 1240804

Revision history for this message
Tom Fifield (fifieldt) wrote :

Hi,

This is because the options are only registered after module instantiation.

This tool works by importing the module and relying on that to update the global configuration.

114 def __init__(self, *args, **kwargs):
115 super(VMwareEsxVmdkDriver, self).__init__(*args, **kwargs)
116 self.configuration.append_config_values(vmdk_opts)

If you take a look at other drivers, you'll see that they register opts in the global space, eg

 42 CONF = cfg.CONF
 43 CONF.register_opts(huawei_opt)