Skip to content

Commit cad253f

Browse files
committed
Merge branch 'wip-67299-quincy' of https://github.com/neesingh-rh/ceph into wip-hemanth-testing-2024-08-14-1817-quincy
2 parents 13ee85b + a38bf03 commit cad253f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

qa/tasks/cephfs/test_misc.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,13 @@ def test_session_ls(self):
401401

402402
def test_client_ls(self):
403403
self._session_client_ls(['client', 'ls'])
404-
404+
405+
def test_ceph_tell_for_unknown_cephname_type(self):
406+
with self.assertRaises(CommandFailedError) as ce:
407+
self.run_ceph_cmd('tell', 'cephfs.c', 'something')
408+
self.assertEqual(ce.exception.exitstatus, 1)
409+
410+
405411
class TestCacheDrop(CephFSTestCase):
406412
CLIENTS_REQUIRED = 1
407413

src/pybind/ceph_argparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,13 +502,13 @@ def valid(self, s, partial=False):
502502
try:
503503
poolid = int(poolid_s)
504504
except ValueError:
505-
raise ArgumentFormat('pool {0} not integer'.format(poolid))
505+
raise ArgumentFormat('pool {0} not integer'.format(poolid_s))
506506
if poolid < 0:
507507
raise ArgumentFormat('pool {0} < 0'.format(poolid))
508508
try:
509509
pgnum = int(pgnum_s, 16)
510510
except ValueError:
511-
raise ArgumentFormat('pgnum {0} not hex integer'.format(pgnum))
511+
raise ArgumentFormat('pgnum {0} not hex integer'.format(pgnum_s))
512512
self.val = s
513513

514514
def __str__(self):

0 commit comments

Comments
 (0)