Skip to content
Snippets Groups Projects
Commit 8a7ce945 authored by Eugine Blikh's avatar Eugine Blikh
Browse files

Moving extra call code to admin_connection

parent d9413c8d
No related branches found
No related tags found
No related merge requests found
......@@ -97,3 +97,10 @@ class AdminConnection(TarantoolConnection):
if (not rg1 or len(rg1.group()) != len(command)) and not rg2:
add_lua=True
return self.execute_simple(command, silent, lua=add_lua)
def __call__(self, command, silent=False, simple=False):
if not simple:
return self.execute(command, silent)
else:
self.opt_reconnect()
return self.execute_simple(command, silent)
......@@ -76,8 +76,4 @@ class TarantoolConnection(object):
self.disconnect()
def __call__(self, command, silent=False, simple=False):
if not simple:
return self.execute(command, silent)
else:
self.opt_reconnect()
return self.execute_simple(command, silent)
return self.execute(command, silent)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment