Save the active VMM instance ID to the config file.
(vmm_id: str)
| 166 | |
| 167 | |
| 168 | def save_active_vmm(vmm_id: str): |
| 169 | """Save the active VMM instance ID to the config file.""" |
| 170 | config = load_config() |
| 171 | config["active_vmm"] = vmm_id |
| 172 | os.makedirs(os.path.dirname(DEFAULT_CONFIG_PATH), exist_ok=True) |
| 173 | with open(DEFAULT_CONFIG_PATH, "w") as f: |
| 174 | json.dump(config, f, indent=2) |
| 175 | |
| 176 | |
| 177 | def cmd_ls_vmm(args): |
no test coverage detected