(self, params, **kwargs)
| 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 | |
| 285 | class SwitchToMcCommand(EnterpriseCommand, MSPMixin): |
nothing calls this directly
no test coverage detected