summaryrefslogtreecommitdiffstats
path: root/Server/bkr/server/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'Server/bkr/server/model.py')
-rw-r--r--Server/bkr/server/model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Server/bkr/server/model.py b/Server/bkr/server/model.py
index c6730b4..4ffb297 100644
--- a/Server/bkr/server/model.py
+++ b/Server/bkr/server/model.py
@@ -4824,13 +4824,13 @@ class Recipe(TaskBase):
recipe.appendChild(dr)
hostRequires = self.doc.createElement("hostRequires")
for hr in hrs.getElementsByTagName("hostRequires"):
- for child in hr.childNodes:
+ for child in hr.childNodes[:]:
hostRequires.appendChild(child)
recipe.appendChild(hostRequires)
prs = xml.dom.minidom.parseString(self.partitions)
partitions = self.doc.createElement("partitions")
for pr in prs.getElementsByTagName("partitions"):
- for child in pr.childNodes:
+ for child in pr.childNodes[:]:
partitions.appendChild(child)
recipe.appendChild(partitions)
for t in self.tasks: