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

Method execute

keepercommander/commands/msp.py:274–282  ·  view source on GitHub ↗
(self, params, **kwargs)

Source from the content-addressed store, hash-verified

272 return switch_to_msp_parser
273
274 def execute(self, params, **kwargs):
275 global current_mc_id, msp_params
276 if current_mc_id is None:
277 raise CommandError('switch-to-msp', "Already MSP")
278
279 current_mc_id = None
280 if msp_params is not None:
281 api.query_enterprise(msp_params)
282 logging.info("Switched back to MSP")
283
284
285class SwitchToMcCommand(EnterpriseCommand, MSPMixin):

Callers

nothing calls this directly

Calls 3

CommandErrorClass · 0.70
query_enterpriseMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected