summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorCalen Pennington <cpennington@wgen.net>2011-12-12 10:34:22 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-01-13 11:52:42 -0500
commitd4e5079c19322737fc24b0098eb7986fc0385b77 (patch)
tree02042b4db9bb3358eea01b44edd5916c9d7b31bb /src/lib/Server
parente81dce803aaa6b904d092452f574099d03bdae99 (diff)
downloadbcfg2-d4e5079c19322737fc24b0098eb7986fc0385b77.tar.gz
bcfg2-d4e5079c19322737fc24b0098eb7986fc0385b77.tar.bz2
bcfg2-d4e5079c19322737fc24b0098eb7986fc0385b77.zip
Explicitly use child.attrib.keys(), rather than expecting child.attrib to interpreted as a list of keys
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Plugins/Pkgmgr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Pkgmgr.py b/src/lib/Server/Plugins/Pkgmgr.py
index a3890f2a5..73c2813d4 100644
--- a/src/lib/Server/Plugins/Pkgmgr.py
+++ b/src/lib/Server/Plugins/Pkgmgr.py
@@ -64,7 +64,7 @@ class PNode(Bcfg2.Server.Plugin.INode):
if 'Package' not in pdict:
pdict['Package'] = set()
for child in data.getchildren():
- attrs = Set(data.attrib.keys()).difference(child.attrib + ['name'])
+ attrs = Set(data.attrib.keys()).difference(child.attrib.keys() + ['name'])
for attr in attrs:
try:
child.set(attr, data.get(attr))