MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / check_if_running_as_mc

Function check_if_running_as_mc

keepercommander/cli.py:213–224  ·  view source on GitHub ↗
(params, args)

Source from the content-addressed store, hash-verified

211
212
213def check_if_running_as_mc(params, args):
214 if msp.current_mc_id is not None:
215 if msp.current_mc_id in msp.mc_params_dict:
216 params = msp.mc_params_dict[msp.current_mc_id]
217 else:
218 msp.current_mc_id = None
219 else: # Not impersonating
220 if msp.msp_params is not None:
221 params = msp.msp_params
222 msp.msp_params = None
223
224 return params, args
225
226
227def is_enterprise_command(name, command, args): # type: (str, CliCommand, str) -> bool

Callers 1

do_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected