]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/rbd_support: cast pool_id from int to str when collecting LevelSpec
authorSunny Kumar <sunkumar@redhat.com>
Thu, 24 Feb 2022 16:07:39 +0000 (16:07 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 7 Mar 2022 11:19:52 +0000 (12:19 +0100)
commitb451dbbbe553ee6bb28d864b1d2e9325e95db56d
tree143952030196fa3121a187c1dc630b1819c1b1d5
parent77b782875d733496cac8473a67f611f0795b892b
mgr/rbd_support: cast pool_id from int to str when collecting LevelSpec

While collecting LevelSpec using class method from_name make sure to cast
pool_id from int to string. This is necessary to match the internal
representation of LevelSpec where pool_id is maintained as str.

Fixes: https://tracker.ceph.com/issues/53915
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
(cherry picked from commit 05f2cfd9b5fdd34afc7f65685e57024dc183619f)
src/pybind/mgr/rbd_support/schedule.py