Looks like the key is CONF[self.__pivot] needs to work with "baremetal.db_backend".
if not self.__backend: backend_name = CONF[self.__pivot]
if backend_name not in self.__backends:
msg = _('Invalid backend: %s') % backend_name raise exception.NovaException(msg)
Basically we need to look up the group first and then lookup the key in the group. Easiest way is to enhance cfg._get_opt_info to deal with "baremetal.db_backend"
Looks like the key is CONF[self.__pivot] needs to work with "baremetal. db_backend" .
if not self.__backend:
backend_ name = CONF[self.__pivot]
raise exception. NovaException( msg)
if backend_name not in self.__backends:
msg = _('Invalid backend: %s') % backend_name
Basically we need to look up the group first and then lookup the key in the group. Easiest way is to enhance cfg._get_opt_info to deal with "baremetal. db_backend"