Skip to content

Commit

Permalink
Merge pull request #25 from Xelon-AG/feat/import
Browse files Browse the repository at this point in the history
fix: check param exists
  • Loading branch information
tonkoshkurik authored Aug 16, 2023
2 parents 7aec1be + 48d8b47 commit bc7c85b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/Soap/SoapImportApis.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ public function importVApp(string $resourcePoolId, $entityConfig, $instantiation
'virtualICH7MPresent' => $configSpec->virtualICH7MPresent ?? null,
'virtualSMCPresent' => $configSpec->virtualSMCPresent ?? null,
'deviceChange' => $deviceChange,
'memoryAllocation' => [
'memoryAllocation' => isset($configSpec->memoryAllocation) ? [
'reservation' => $configSpec->memoryAllocation->reservation ?? null,
'expandableReservation' => $configSpec->memoryAllocation->expandableReservation ?? null,
'limit' => $configSpec->memoryAllocation->limit ?? null,
'shares' => $configSpec->memoryAllocation->shares ? [
'shares' => $configSpec->memoryAllocation->shares->shares ?? null,
'level' => $configSpec->memoryAllocation->shares->level ?? null,
] : null,
],
] : null,
'extraConfig' => \count($extraConfig) > 0 ? $extraConfig : null,
'bootOptions' => $configSpec->bootOptions ? [
'bootDelay' => $configSpec->bootOptions->bootDelay ?? null,
Expand Down

0 comments on commit bc7c85b

Please sign in to comment.