Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: register tool: Add lower() to compare fingerprints
......................................................................

register tool: Add lower() to compare fingerprints

Make sure the fingerprints will match in cases user
typed one letter with in upper and other in lower.

Change-Id: I64ffc34a853ba0fe0fd4b3ecc6663ec5e660a56a
Signed-off-by: Douglas Schilling Landgraf <[email protected]>
---
M lib/vdsm/tool/register.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/52/42752/1

diff --git a/lib/vdsm/tool/register.py b/lib/vdsm/tool/register.py
index 3ac3fc6..31121c0 100644
--- a/lib/vdsm/tool/register.py
+++ b/lib/vdsm/tool/register.py
@@ -322,7 +322,7 @@
             calculated_fprint = self._calculate_fingerprint(f.name)
             temp_ca_file = True
 
-        if self.fprint and self.fprint != calculated_fprint:
+        if self.fprint and self.fprint.lower() != calculated_fprint.lower():
             msg = "The fingeprints doesn't match:\n" \
                   "Calculated fingerprint: [{c}]\n" \
                   "Attribute fingerprint:  [{a}]".format(c=calculated_fprint,


-- 
To view, visit https://gerrit.ovirt.org/42752
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I64ffc34a853ba0fe0fd4b3ecc6663ec5e660a56a
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to