update rm deadcode
This commit is contained in:
@@ -7,7 +7,7 @@ namespace App\Services;
|
||||
use App\Http\Facade\SignRSA;
|
||||
use App\Http\Services\vCenter as VCenterService;
|
||||
use App\Models\ModuleVmware;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use App\Support\TlsHttpClientFactory;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
final class VmProvisionService
|
||||
@@ -38,7 +38,7 @@ final class VmProvisionService
|
||||
public function getVmGuestInfo(VCenterService $service, string $vmId): array
|
||||
{
|
||||
try {
|
||||
$response = Http::withoutVerifying()
|
||||
$response = TlsHttpClientFactory::vCenter()
|
||||
->withHeaders(['vmware-api-session-id' => $service->token])
|
||||
->timeout(10)
|
||||
->get("https://{$service->apiUri}/rest/vcenter/vm/{$vmId}/guest/identity");
|
||||
|
||||
Reference in New Issue
Block a user