feat: Implement UUID-based customer routing, enhance order request validation, and refactor VM creation job with updated payment logic and ModuleVmware handling.
This commit is contained in:
@@ -647,7 +647,6 @@ PS;
|
||||
public function CreateVirtualMachine($product_data): array|string
|
||||
{
|
||||
$vcenterModel = $product_data['vcenter'];
|
||||
Log::info('Vcenter Info', ['data' => $vcenterModel]);
|
||||
|
||||
if (!$this->loginServer($vcenterModel)) {
|
||||
Log::error('Failed to create VM: API check failed, requires login.');
|
||||
@@ -673,13 +672,6 @@ PS;
|
||||
$base_ram = max(1, (int) $base_ram);
|
||||
$base_disk = max(20, (int) $base_disk);
|
||||
|
||||
Log::info("Cấu hình cơ bản", [
|
||||
'base_cpu' => $base_cpu,
|
||||
'base_ram' => $base_ram,
|
||||
'base_disk' => $base_disk,
|
||||
'addon' => $addon
|
||||
]);
|
||||
|
||||
// Lấy tất cả datastore liên quan host, không lấy first()
|
||||
$datastores = \App\Models\ModuleDatastore::where('module_host_id', $host->id)->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user