X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Fcontrollers%2Fsettings.py;h=5235992a1741ae28ba3320c593bda55ebd48e8b1;hb=f6b5b4d738b87d88d2de35127b6b0e41eae2a272;hp=9cde5e9ec12d4cb491e3752450b1fe093a55f062;hpb=12732ca2e80d168d344a265acffc1fbd1fa1f1b5;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/controllers/settings.py b/ceph/src/pybind/mgr/dashboard/controllers/settings.py index 9cde5e9ec..5235992a1 100644 --- a/ceph/src/pybind/mgr/dashboard/controllers/settings.py +++ b/ceph/src/pybind/mgr/dashboard/controllers/settings.py @@ -30,8 +30,8 @@ class Settings(RESTController): try: yield result - except AttributeError: - raise cherrypy.NotFound(result) + except AttributeError: # pragma: no cover - handling is too obvious + raise cherrypy.NotFound(result) # pragma: no cover - handling is too obvious @staticmethod def _to_native(setting): @@ -98,7 +98,7 @@ class StandardSettings(RESTController): settings. :rtype: dict """ - return { + return { # pragma: no cover - no complexity there 'user_pwd_expiration_span': SettingsModule.USER_PWD_EXPIRATION_SPAN, 'user_pwd_expiration_warning_1':