Fix use of incorrect variable

This commit is contained in:
Manuel Thalmann 2023-07-03 13:02:47 +02:00
parent cb1a0a8e4b
commit 347f1ae462

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";