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