Fix XML method invocation
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2021-05-11 09:00:32 +02:00
parent d1413040fe
commit ec1aa6ab85
1 changed files with 4 additions and 4 deletions

View File

@ -116,13 +116,13 @@ ForEach ($DynamicDisk in $OVFConfig.Disks.Dynamic) {
}
}
$XMLDiskAttrUnits.Value = "byte * 2^$($Powers)"
$XMLDiskAttrFormat.CreateAttribute('format', $XML.DocumentElement.ovf)
$XMLDiskAttrFormat = $XML.CreateAttribute('format', $XML.DocumentElement.ovf)
$XMLDiskAttrFormat.Value = 'http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized'
$XMLDiskId.CreateAttribute('diskId', $XML.DocumentElement.ovf)
$XMLDiskId = $XML.CreateAttribute('diskId', $XML.DocumentElement.ovf)
$XMLDiskId.Value = "vmdisk$($DiskId)"
$XMLDiskAttrCapacity.CreateAttribute('capacity', $XML.DocumentElement.ovf)
$XMLDiskAttrCapacity = $XML.CreateAttribute('capacity', $XML.DocumentElement.ovf)
$XMLDiskAttrCapacity.Value = '${{vmconfig.disksize.{0}}}' -f $DiskId
$XMLDiskAttrPopulated.CreateAttribute('populatedSize', $XML.DocumentElement.ovf)
$XMLDiskAttrPopulated = $XML.CreateAttribute('populatedSize', $XML.DocumentElement.ovf)
$XMLDiskAttrPopulated.Value = 0
[void]$XMLDisk.Attributes.Append($XMLDiskAttrUnits)