(params, args)
| 211 | |
| 212 | |
| 213 | def 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 | |
| 227 | def is_enterprise_command(name, command, args): # type: (str, CliCommand, str) -> bool |