Skip to content

Commit 074fcff

Browse files
committed
update to hyperv setup adding additional check on the hyperv setup to bail early on a bad install
1 parent c47899c commit 074fcff

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Plugin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ public static function queueCreate($serviceInfo)
380380
\StatisticClient::report('Hyper-V', 'CreateVM', false, $e->getCode(), $e->getMessage(), STATISTICS_SERVER);
381381
}
382382
}
383+
if ($response->CreateVMResult->Success == false) {
384+
return false;
385+
}
383386
//$response = $soap->CreateVirtualMachine($create_parameters);
384387
$progress = 50;
385388
$db->query("update vps set vps_server_status='{$progress}' where vps_id={$serviceInfo['id']}", __LINE__, __FILE__);

0 commit comments

Comments
 (0)