Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit 655c9ab090218d57180f24f851b95a9a1b87c064
Author: Peter Hatina <phatina(a)redhat.com>
Date: Mon Sep 30 08:27:10 2013 +0200
make md5 hash key from case insensitive members in lmi_associators()
---------------------------------------------------------------
cli/lmi/shell/LMIUtil.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cli/lmi/shell/LMIUtil.py b/cli/lmi/shell/LMIUtil.py
index 4f85db4..cd43877 100644
--- a/cli/lmi/shell/LMIUtil.py
+++ b/cli/lmi/shell/LMIUtil.py
@@ -314,7 +314,8 @@ def lmi_associators(assoc_classes):
"""
def make_key(path):
path.host = None
- return hashlib.md5(path.classname + path.namespace +
str(path.keybindings)).hexdigest()
+ return hashlib.md5(path.classname.lower() + path.namespace.lower() + \
+ str({ k.lower() : v for k, v in path.keybindings.iteritems() })).hexdigest()
result = []