diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-05-23 08:24:42 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-06-19 11:14:48 -0400 |
commit | 16a38827b5bb374da6caaf103f9363a45262f745 (patch) | |
tree | 1cdeadf189dd73e449b65f1c299f1adf3c84fda1 | |
parent | 49362b6d633a7784f77650d5218d0e629d50e4fb (diff) | |
download | bcfg2-16a38827b5bb374da6caaf103f9363a45262f745.tar.gz bcfg2-16a38827b5bb374da6caaf103f9363a45262f745.tar.bz2 bcfg2-16a38827b5bb374da6caaf103f9363a45262f745.zip |
YUMng: Fix DBStats hooks for centos5
On centos5 the hooks raise a TypeError. Replacing the keys with
attributes.
-rw-r--r-- | src/lib/Client/Tools/YUMng.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py index cb9c7a87f..febe6b9a0 100644 --- a/src/lib/Client/Tools/YUMng.py +++ b/src/lib/Client/Tools/YUMng.py @@ -521,9 +521,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'])) |