mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
mgr/orch: ServiceSpec: drop 'count'
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
157e4eb832
commit
436df900b4
@ -1548,12 +1548,6 @@ class ServiceSpec(object):
|
||||
self.service_type = service_type
|
||||
self.service_id = service_id
|
||||
|
||||
if self.placement is not None and self.placement.count is not None:
|
||||
#: Count of service instances. Deprecated.
|
||||
self.count = self.placement.count # type: int
|
||||
else:
|
||||
self.count = 1
|
||||
|
||||
@classmethod
|
||||
def from_json(cls, json_spec: dict) -> "ServiceSpec":
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user