diff options
author | Calen Pennington <cpennington@wgen.net> | 2011-12-12 10:34:22 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-01-13 11:52:42 -0500 |
commit | d4e5079c19322737fc24b0098eb7986fc0385b77 (patch) | |
tree | 02042b4db9bb3358eea01b44edd5916c9d7b31bb /src/lib/Server/Plugins/Pkgmgr.py | |
parent | e81dce803aaa6b904d092452f574099d03bdae99 (diff) | |
download | bcfg2-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/Plugins/Pkgmgr.py')
-rw-r--r-- | src/lib/Server/Plugins/Pkgmgr.py | 2 |
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)) |