summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-05-23 08:24:42 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2012-05-23 08:27:27 -0500
commit5fcba365e0f5a67f6a3e77fc49bf2924de9d5896 (patch)
tree2c66ad054993584c3447d90786829c2bf7cd8030 /src/lib/Bcfg2
parent289b649107aff7c36648bbd50df7c2ca54681982 (diff)
downloadbcfg2-5fcba365e0f5a67f6a3e77fc49bf2924de9d5896.tar.gz
bcfg2-5fcba365e0f5a67f6a3e77fc49bf2924de9d5896.tar.bz2
bcfg2-5fcba365e0f5a67f6a3e77fc49bf2924de9d5896.zip
YUMng: Fix DBStats hooks for centos5
On centos5 the hooks raise a TypeError. Replacing the keys with attributes.
Diffstat (limited to 'src/lib/Bcfg2')
-rw-r--r--src/lib/Bcfg2/Client/Tools/YUMng.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/YUMng.py b/src/lib/Bcfg2/Client/Tools/YUMng.py
index da627ed7a..6dc2940f3 100644
--- a/src/lib/Bcfg2/Client/Tools/YUMng.py
+++ b/src/lib/Bcfg2/Client/Tools/YUMng.py
@@ -514,9 +514,9 @@ class YUMng(Bcfg2.Client.Tools.PkgTool):
package_fail = True
stat['version_fail'] = True
# Just chose the first pkg for the error message
- entry.set('current_version', "%s-%s.%s" % (POs[0]['version'],
- POs[0]['release'],
- POs[0]['arch']))
+ entry.set('current_version', "%s-%s.%s" % (POs[0].version,
+ POs[0].release,
+ POs[0].arch))
entry.set('version', "%s-%s.%s" % (nevra['version'],
nevra['release'],
nevra['arch']))