14f8ab
From 42a05c7f8464f529f53bced31a64ea373e16f58b Mon Sep 17 00:00:00 2001
14f8ab
From: Hari Gowtham <hgowtham@redhat.com>
14f8ab
Date: Thu, 24 Oct 2019 17:40:44 +0530
14f8ab
Subject: [PATCH 420/449] scripts: quota_fsck script TypeError: %d format:not
14f8ab
 dict
14f8ab
14f8ab
Problem: One of the prints in the script have been using
14f8ab
%i as the format for printing which doesn't work.
14f8ab
14f8ab
Fix: use %s as the format in the place of %i
14f8ab
14f8ab
>Fixes: bz#1764129
14f8ab
>Change-Id: I4480ede7bf62906ddedbe5f880a1e89c76946641
14f8ab
>Signed-off-by: Hari Gowtham <hgowtham@redhat.com>
14f8ab
>Upstream patch: https://review.gluster.org/#/c/glusterfs/+/23586/
14f8ab
14f8ab
BUG: 1786681
14f8ab
Change-Id: I4480ede7bf62906ddedbe5f880a1e89c76946641
14f8ab
Signed-off-by: hari gowtham <hgowtham@redhat.com>
14f8ab
Reviewed-on: https://code.engineering.redhat.com/gerrit/202484
14f8ab
Tested-by: RHGS Build Bot <nigelb@redhat.com>
14f8ab
Reviewed-by: Sunny Kumar <sunkumar@redhat.com>
14f8ab
---
14f8ab
 extras/quota/quota_fsck.py | 4 ++--
14f8ab
 1 file changed, 2 insertions(+), 2 deletions(-)
14f8ab
14f8ab
diff --git a/extras/quota/quota_fsck.py b/extras/quota/quota_fsck.py
14f8ab
index 485a37a..174f2a2 100755
14f8ab
--- a/extras/quota/quota_fsck.py
14f8ab
+++ b/extras/quota/quota_fsck.py
14f8ab
@@ -58,10 +58,10 @@ def print_msg(log_type, path, xattr_dict = {}, stbuf = "", dir_size = None):
14f8ab
     elif log_type == QUOTA_SIZE_MISMATCH:
14f8ab
         print("mismatch")
14f8ab
         if dir_size is not None:
14f8ab
-            print('%24s %60s %12s %12s' % ("Size Mismatch", path, 
14f8ab
+            print('%24s %60s %12s %12s' % ("Size Mismatch", path,
14f8ab
                 xattr_dict, dir_size))
14f8ab
         else:
14f8ab
-            print('%-24s %-60s %-12i %-12i' % ("Size Mismatch", path, xattr_dict,
14f8ab
+            print('%-24s %-60s %-12s %-12s' % ("Size Mismatch", path, xattr_dict,
14f8ab
                    stbuf.st_size))
14f8ab
 
14f8ab
 def size_differs_lot(s1, s2):
14f8ab
-- 
14f8ab
1.8.3.1
14f8ab