From: Varsha Rao Date: Thu, 10 Oct 2019 10:19:53 +0000 (+0530) Subject: cephfs-shell: Print max_bytes and max_files as string on get Quota X-Git-Tag: v15.1.0~295^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3cd67815773c9c4bdb07206e6f964ddccb94ec53;p=ceph.git cephfs-shell: Print max_bytes and max_files as string on get Quota Signed-off-by: Varsha Rao --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 177dd653562..ac7a0851597 100755 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -1281,18 +1281,16 @@ class CephFSShell(Cmd): max_bytes = '0' max_files = '0' try: - max_bytes = cephfs.getxattr(args.path, - 'ceph.quota.max_bytes') - poutput('max_bytes: %s' % max_bytes) + max_bytes = cephfs.getxattr(args.path, 'ceph.quota.max_bytes') + poutput('max_bytes: {}'.format(max_bytes.decode('utf-8'))) except libcephfs.Error: perror('max_bytes is not set') self.exit_code = 1 pass try: - max_files = cephfs.getxattr(args.path, - 'ceph.quota.max_files') - poutput('max_files: %s' % max_files) + max_files = cephfs.getxattr(args.path, 'ceph.quota.max_files') + poutput('max_files: {}'.format(max_files.decode('utf-8'))) except libcephfs.Error: perror('max_files is not set') self.exit_code = 1