25 from cm.models.command
import Command
26 from cm.utils.decorators
import user_log
40 return Command.execute(
'shutdown', caller_id, vm_id, timeout=timeout)
55 def reboot(caller_id, vm_id, timeout='now'):
56 return Command.execute(
'reboot', caller_id, vm_id, timeout=timeout)
72 return {
'password': Command.execute(
'reset_password', caller_id, vm_id, user=vm_username)}
88 results += Command.execute(
'add_ssh_key', caller_id, vm_id, user=vm_username, ssh_key=vm_key)