mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
mgr/cephadm: properly indent raise conditions
Signed-off-by: Joshua Schmid <jschmid@suse.de> Co-Authored-By: Kiefer Chang <1691518+bk201@users.noreply.github.com>
This commit is contained in:
parent
9d42b1ce97
commit
7320d2b502
@ -1319,7 +1319,7 @@ class CephadmOrchestrator(MgrModule, orchestrator.OrchestratorClientMixin):
|
||||
for _inventory in inventory_list:
|
||||
if _inventory.name == hostname:
|
||||
return _inventory
|
||||
raise OrchestratorError("No inventory found for host: {}".format(hostname))
|
||||
raise OrchestratorError("No inventory found for host: {}".format(hostname))
|
||||
|
||||
cmds = []
|
||||
# 3) iterate over matching_host and call DriveSelection and to_ceph_volume
|
||||
@ -2109,4 +2109,3 @@ class NodeAssignment(object):
|
||||
logger.info('Assigning nodes to spec: {}'.format(candidates))
|
||||
self.spec.placement.set_hosts(candidates)
|
||||
return None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user