def _execute(*cmd, **kwargs):
 if CONF.fake_network:
  LOG.debug('FAKE NET: %s', ' '.join(map(str, cmd)))
  return ('fake', 0)
 else:
  return utils.execute(*cmd, **kwargs)

def _execute ( * cmd , ** kwargs ) : if CONF . fake_network : LOG . debug ( 'FAKE NET: %s' , ' ' . join ( map ( str , cmd ) ) ) return ( 'fake' , 0 ) else : return utils . execute ( * cmd , ** kwargs )
takes an sqlalchemy query (q) that is a select on an object table .