super(ConfKeyManager, self).__init__()
self.key_id = '00000000-0000-0000-0000-000000000000'
- if CONF.keymgr.fixed_key is None:
- LOG.warn(_('config option keymgr.fixed_key has not been defined: '
- 'some operations may fail unexpectedly'))
def _generate_key(self, **kwargs):
_hex = self._generate_hex_key(**kwargs)
def _generate_hex_key(self, **kwargs):
if CONF.keymgr.fixed_key is None:
+ LOG.warn(_('config option keymgr.fixed_key has not been defined: '
+ 'some operations may fail unexpectedly'))
raise ValueError(_('keymgr.fixed_key not defined'))
return CONF.keymgr.fixed_key