Skip to content

Commit

Permalink
Merge pull request #6 from Xelon-AG/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
tonkoshkurik committed Nov 24, 2022
2 parents 09e6440 + f264809 commit 10e6cda
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Traits/Soap/SoapGuestApis.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ public function getListProcessInGuest(
) {
$body = [
'_this' => [
'type' => 'GuestFileManager',
'_' => 'guestOperationsFileManager',
'type' => 'GuestProcessManager',
'_' => 'guestOperationsProcessManager',
],
'vm' => [
'type' => 'VirtualMachine',
Expand Down
1 change: 1 addition & 0 deletions src/Traits/Soap/SoapStorageApis.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public function createVStorage(string $name, int $capacityInMB, string $datastor
'type' => 'Datastore',
'_' => $datastore,
],
'provisioningType' => 'thin',
]),
'capacityInMB' => $capacityInMB,
],
Expand Down
3 changes: 1 addition & 2 deletions src/Transform/SoapTransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public function arrayToSoapVar(array $array): array
$data[] = new SoapVar($this->arrayToSoapVar($childItem), SOAP_ENC_OBJECT, $typeName, null, $key);
}

// unset($array[$key]);

$deepArraySet = true;
}

Expand Down Expand Up @@ -111,6 +109,7 @@ public function transformToArrayValues(stdClass $object, int $startIndex = 0, ?i
['layoutEx', 'snapshot'],
['layoutEx', 'snapshot', 'disk'],
['layoutEx', 'snapshot', 'disk', 'chain'],
['layoutEx', 'snapshot', 'disk', 'chain', 'fileKey'],
['snapshot', 'rootSnapshotList'],
['snapshot', 'rootSnapshotList', 'childSnapshotList'],
];
Expand Down
4 changes: 2 additions & 2 deletions src/VmWareClientInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private function createRestSession(): void
$apiSessionId = $apiSessionId->value;
}

Cache::add("vcenter-rest-session-$this->ip", [
Cache::put("vcenter-rest-session-$this->ip", [
'api_session_id' => $apiSessionId,
'expired_at' => Carbon::now()->addSeconds(config('vmware-php-client.session_ttl') * 60 - 30),
]);
Expand Down Expand Up @@ -184,7 +184,7 @@ private function createSoapSession(): void
$this->soapClient->__setCookie('vmware_soap_session', $soapSessionToken);
}

Cache::add("vcenter-soap-session-$this->ip", [
Cache::put("vcenter-soap-session-$this->ip", [
'vmware_soap_session' => $soapSessionToken,
'expired_at' => Carbon::now()->addSeconds(config('vmware-php-client.session_ttl') * 60 - 30),
]);
Expand Down

0 comments on commit 10e6cda

Please sign in to comment.