def host_list(**connection_args):
 conn_args = _login(**connection_args)
 try:
  if conn_args:
   method = 'host.get'
   params = {'output': 'extend'}
   ret = _query(method, params, conn_args['url'], conn_args['auth'])
   return ret['result']
  else:
   raise KeyError
 except KeyError:
  return False

def host_list ( ** connection_args ) : conn_args = _login ( ** connection_args ) try : if conn_args : method = 'host.get' params = { 'output' : 'extend' } ret = _query ( method , params , conn_args [ 'url' ] , conn_args [ 'auth' ] ) return ret [ 'result' ] else : raise KeyError except KeyError : return False
retrieve all hosts .