def get_fallback(config, value, section='openstack'):
 try:
  return config.get(section, value)
 except ConfigParser.NoOptionError:
  return False

def get_fallback ( config , value , section = 'openstack' ) : try : return config . get ( section , value ) except ConfigParser . NoOptionError : return False
get value from config object and return the value or false .