|
@@ -35,6 +35,15 @@ class DeleteVmProvider extends BaseDataProvider implements ClientArea
|
|
|
$vmModel = VmModel::ofHostingId($this->getWhmcsParamByKey('serviceid'))
|
|
$vmModel = VmModel::ofHostingId($this->getWhmcsParamByKey('serviceid'))
|
|
|
->ofId($this->formData['id'])->firstOrFail();
|
|
->ofId($this->formData['id'])->firstOrFail();
|
|
|
//destory vm
|
|
//destory vm
|
|
|
|
|
+
|
|
|
|
|
+ logModuleCall(
|
|
|
|
|
+ 'proxmoxCloud',
|
|
|
|
|
+ __FUNCTION__,
|
|
|
|
|
+ $this->formData,
|
|
|
|
|
+ 'Debug',
|
|
|
|
|
+ $vmModel
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
(new CloudService())->delete($vmModel);
|
|
(new CloudService())->delete($vmModel);
|
|
|
return (new HtmlDataJsonResponse())
|
|
return (new HtmlDataJsonResponse())
|
|
|
->setStatusSuccess()
|
|
->setStatusSuccess()
|