We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ffd658 commit 396317aCopy full SHA for 396317a
src/Inventory/Asset/VirtualMachine.php
@@ -339,6 +339,19 @@ protected function createVmComputer()
339
$this->handlePorts('Computer', $computers_vm_id);
340
}
341
342
+ //manage operating system
343
+ if (property_exists($vm, 'operatingsystem')) {
344
+ $os = new OperatingSystem($computervm, (array)$vm->operatingsystem);
345
+ if ($os->checkConf($this->conf)) {
346
+ $os->setAgent($this->getAgent());
347
+ $os->setExtraData($this->data);
348
+ $os->setEntityID($computervm->getEntityID());
349
+ $os->prepare();
350
+ $os->handleLinks();
351
+ $os->handle();
352
+ }
353
354
+
355
//manage extra components created form hosts information
356
if ($this->conf->vm_components) {
357
foreach ($this->vmcomponents as $key => $assetitem) {
0 commit comments