Skip to content

Commit 04330f5

Browse files
committed
mgr/cephadm: add "original_weight" parameter to OSD class
Fixes: https://tracker.ceph.com/issues/67329 Signed-off-by: Adam King <[email protected]>
1 parent 959a4c3 commit 04330f5

File tree

1 file changed

+3
-2
lines changed
  • src/pybind/mgr/cephadm/services

1 file changed

+3
-2
lines changed

src/pybind/mgr/cephadm/services/osd.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,8 @@ def __init__(self,
621621
force: bool = False,
622622
hostname: Optional[str] = None,
623623
zap: bool = False,
624-
no_destroy: bool = False):
624+
no_destroy: bool = False,
625+
original_weight: Optional[float] = None):
625626
# the ID of the OSD
626627
self.osd_id = osd_id
627628

@@ -656,7 +657,7 @@ def __init__(self,
656657
# mgr obj to make mgr/mon calls
657658
self.rm_util: RemoveUtil = remove_util
658659

659-
self.original_weight: Optional[float] = None
660+
self.original_weight: Optional[float] = original_weight
660661

661662
# Whether devices associated with the OSD should be zapped (DATA ERASED)
662663
self.zap = zap

0 commit comments

Comments
 (0)