def unique_svr_name(server):
 num = 0
 svr = 1
 new_name = server
 while svr:
  if num:
   new_name = ('%s@%d' % (server, num))
  else:
   new_name = ('%s' % server)
  svr = config.get_config('servers', new_name)
  num += 1
 return new_name

def unique_svr_name ( server ) : num = 0 svr = 1 new_name = server while svr : if num : new_name = ( '%s@%d' % ( server , num ) ) else : new_name = ( '%s' % server ) svr = config . get_config ( 'servers' , new_name ) num += 1 return new_name
return a unique variant on given server name .