From: neeraj pratap singh Date: Thu, 2 Nov 2023 03:57:40 +0000 (+0530) Subject: pybind/ceph_argparse: fixing error message for ceph tell command X-Git-Tag: v18.2.5~262^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=db1799bf17662e794abcfa15fa16a8765a832559;p=ceph.git pybind/ceph_argparse: fixing error message for ceph tell command Fixes: https://tracker.ceph.com/issues/59624 Signed-off-by: Neeraj Pratap Singh (cherry picked from commit 2811bb0dfe3b00ba831e34eb7db50e528d8fbb13) --- diff --git a/src/pybind/ceph_argparse.py b/src/pybind/ceph_argparse.py index b4aace3dfb80..2a43b2a00031 100644 --- a/src/pybind/ceph_argparse.py +++ b/src/pybind/ceph_argparse.py @@ -489,13 +489,13 @@ class CephPgid(CephArgtype): try: poolid = int(poolid_s) except ValueError: - raise ArgumentFormat('pool {0} not integer'.format(poolid)) + raise ArgumentFormat('pool {0} not integer'.format(poolid_s)) if poolid < 0: raise ArgumentFormat('pool {0} < 0'.format(poolid)) try: pgnum = int(pgnum_s, 16) except ValueError: - raise ArgumentFormat('pgnum {0} not hex integer'.format(pgnum)) + raise ArgumentFormat('pgnum {0} not hex integer'.format(pgnum_s)) self.val = s def __str__(self):