]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: properly indent raise conditions
authorJoshua Schmid <jschmid@suse.com>
Thu, 16 Jan 2020 16:27:01 +0000 (17:27 +0100)
committerSage Weil <sage@redhat.com>
Tue, 28 Jan 2020 16:09:38 +0000 (10:09 -0600)
Signed-off-by: Joshua Schmid <jschmid@suse.de>
Co-Authored-By: Kiefer Chang <1691518+bk201@users.noreply.github.com>
src/pybind/mgr/cephadm/module.py

index 3a58ca0fd9d1cfe37756b6e7d1f80772f2fa3b59..b42f3ee26260058759c7e9c5741144898fc247f6 100644 (file)
@@ -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
-