def verify_location_strategy(conf=None, strategies=_available_strategies):
 if (not conf):
  conf = CONF.location_strategy
 if (conf not in strategies):
  msg = (_('Invalid location_strategy option: %(name)s. The valid strategy option(s) is(are): %(strategies)s') % {'name': conf, 'strategies': ', '.join(strategies.keys())})
  LOG.error(msg)
  raise RuntimeError(msg)

def verify_location_strategy ( conf = None , strategies = _available_strategies ) : if ( not conf ) : conf = CONF . location_strategy if ( conf not in strategies ) : msg = ( _ ( 'Invalid location_strategy option: %(name)s. The valid strategy option(s) is(are): %(strategies)s' ) % { 'name' : conf , 'strategies' : ', ' . join ( strategies . keys ( ) ) } ) LOG . error ( msg ) raise RuntimeError ( msg )
validate user configured location_strategy option value .