Add datastore_id to OS model and related functionality; update validation and relationships
This commit is contained in:
@@ -123,6 +123,7 @@ class CreateVirtualMachineJob implements ShouldQueue
|
||||
'product_id' => $product->id,
|
||||
'template' => $infra->template,
|
||||
'host_id' => $infra->host->id,
|
||||
'datastore_id' => $infra->datastore?->id,
|
||||
'vcenter_id' => $infra->vcenter->id,
|
||||
]);
|
||||
|
||||
@@ -133,6 +134,7 @@ class CreateVirtualMachineJob implements ShouldQueue
|
||||
'vcenter' => $infra->vcenter,
|
||||
'template' => $infra->template,
|
||||
'addon' => $addonData,
|
||||
'datastore' => $infra->datastore,
|
||||
]);
|
||||
|
||||
if (is_array($result) && ($result['error'] ?? false)) {
|
||||
|
||||
Reference in New Issue
Block a user