forked from 3wordchant/capsul-flask
fixing get inconsistency and adding vm_state_command
This commit is contained in:
@ -39,6 +39,9 @@ class VirtualizationInterface:
|
||||
def destroy(self, email: str, id: str):
|
||||
pass
|
||||
|
||||
def vm_state_command(self, email: str, id: str, command: str):
|
||||
pass
|
||||
|
||||
def validate_capsul_id(id):
|
||||
if not re.match(r"^(cvm|capsul)-[a-z0-9]{10}$", id):
|
||||
raise ValueError(f"vm id \"{id}\" must match \"^capsul-[a-z0-9]{{10}}$\"")
|
||||
|
Reference in New Issue
Block a user