]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/controllers/orchestrator.py
import 15.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / controllers / orchestrator.py
index c9172b83942809e70220865c080fee473ee802bf..a7fda9f85081c7706c2c77143f7320e11d6a30fc 100644 (file)
@@ -57,7 +57,7 @@ def raise_if_no_orchestrator(method):
     def inner(self, *args, **kwargs):
         orch = OrchClient.instance()
         if not orch.available():
-            raise DashboardException(code='orchestrator_status_unavailable',
+            raise DashboardException(code='orchestrator_status_unavailable',  # pragma: no cover
                                      msg='Orchestrator is unavailable',
                                      component='orchestrator',
                                      http_status_code=503)
@@ -78,7 +78,7 @@ class Orchestrator(RESTController):
     @raise_if_no_orchestrator
     @handle_orchestrator_error('osd')
     @orchestrator_task('identify_device', ['{hostname}', '{device}'])
-    def identify_device(self, hostname, device, duration):
+    def identify_device(self, hostname, device, duration):  # pragma: no cover
         # type: (str, str, int) -> None
         """
         Identify a device by switching on the device light for N seconds.
@@ -110,7 +110,7 @@ class OrchestratorInventory(RESTController):
         for inventory_host in inventory_hosts:
             host_osds = device_osd_map.get(inventory_host['name'])
             for device in inventory_host['devices']:
-                if host_osds:
+                if host_osds:  # pragma: no cover
                     dev_name = os.path.basename(device['path'])
                     device['osd_ids'] = sorted(host_osds.get(dev_name, []))
                 else: