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