We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5395b03 commit d0c455aCopy full SHA for d0c455a
suzieq/cli/sqcmds/context_commands.py
@@ -7,7 +7,9 @@
7
from termcolor import cprint, colored
8
9
from suzieq.cli.nubia_patch import argument
10
-from suzieq.shared.utils import SUPPORTED_ENGINES, print_version
+from suzieq.shared.utils import SUPPORTED_ENGINES,\
11
+ print_version,\
12
+ set_rest_engine
13
14
15
@command("set")
@@ -86,7 +88,13 @@ def set_ctxt(
86
88
ctxt.end_time = end_time
87
89
90
if engine:
- plugin_ctx.change_engine(engine)
91
+ if ctxt.engine != engine:
92
+ if engine == 'rest':
93
+ ctxt.rest_server_ip,\
94
+ ctxt.rest_server_port,\
95
+ ctxt.rest_transport,\
96
+ ctxt.rest_api_key = set_rest_engine(ctxt.cfg)
97
+ plugin_ctx.change_engine(engine)
98
99
if debug:
100
ctxt.debug = debug == 'True'
0 commit comments