summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/Yum.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Tools/Yum.py')
-rw-r--r--src/lib/Client/Tools/Yum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/Yum.py b/src/lib/Client/Tools/Yum.py
index 0986fca33..73506af14 100644
--- a/src/lib/Client/Tools/Yum.py
+++ b/src/lib/Client/Tools/Yum.py
@@ -43,5 +43,5 @@ class Yum(Bcfg2.Client.Tools.RPM.RPM):
def VerifyPackage(self, entry, modlist):
if entry.get('version') == 'noverify':
- return self.installed.has_key(entry.get('name'))
+ return entry.get('name') in self.installed
return Bcfg2.Client.Tools.RPM.RPM.VerifyPackage(self, entry, modlist)