Skip to content

Commit

Permalink
KVM: extending socket message for future use
Browse files Browse the repository at this point in the history
  • Loading branch information
Seitanas committed Sep 13, 2017
1 parent 14ded88 commit 668b551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
$status=str_replace("localhost",$h_reply[0]['address2'],$status);
if ($_SESSION['ad_user']=='yes'&&$vm[0]['os_type']=='windows')//we only need to pass username@domainname to windows login.
$username=$username."@".$domain_name;
$agent_command=json_encode(array('vmname' => $machine_name, 'username' => $username, 'password' => $password, 'os_type' => $vm[0]['os_type']));
$agent_command=json_encode(array('command' => 'STARTVM', 'vmname' => $machine_name, 'username' => $username, 'password' => $password, 'os_type' => $vm[0]['os_type']));
if (empty($status)||$status=='error: Domain is not running'){
add_SQL_line("UPDATE vms SET spice_password='' WHERE id='{$suggested_vm[0]['id']}'"); // reset SPICE password for shut off VMs
$status='BOOTUP';
Expand Down

0 comments on commit 668b551

Please sign in to comment.