Fix use of incorrect variable

This commit is contained in:
Manuel Thalmann 2023-07-03 13:02:47 +02:00
parent 2a94444211
commit fd56f9e8cd

View file

@ -30,7 +30,7 @@ $Global:SetupConfigPostprocessor = {
$partitionCreations.AppendChild($newPartition);
$partitionModifications = $diskConfig.SelectSingleNode("./ua:ModifyPartitions", $namespace);
$newModification = $diskConfig.SelectNodes("./ua:ModifyPartition", $namespace)[2].CloneNode($true);
$newModification = $partitionModifications.SelectNodes("./ua:ModifyPartition", $namespace)[2].CloneNode($true);
$newModification.SelectSingleNode("./ua:Order", $namespace).InnerText = "$newIndex";
$newModification.SelectSingleNode("./ua:PartitionID", $namespace).InnerText = "$newIndex";