Skip to content

Commit af74eef

Browse files
authored
Merge pull request ceph#59318 from adk3798/cephadm-osd-original-weight-param
mgr/cephadm: add "original_weight" parameter to OSD class Reviewed-by: John Mulligan <[email protected]>
2 parents e96b6cf + 04330f5 commit af74eef

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)