MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / save_active_vmm

Function save_active_vmm

vmm/src/vmm-cli.py:168–174  ·  view source on GitHub ↗

Save the active VMM instance ID to the config file.

(vmm_id: str)

Source from the content-addressed store, hash-verified

166
167
168def 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
177def cmd_ls_vmm(args):

Callers 1

cmd_switch_vmmFunction · 0.85

Calls 1

load_configFunction · 0.70

Tested by

no test coverage detected