From 684b584623cec28acc2f5f9153a3505d2bc9666c Mon Sep 17 00:00:00 2001 From: Meghann Cunningham Date: Mon, 16 Jan 2023 20:38:50 +0000 Subject: [PATCH] Removed unnecessary ModuleNotFound --- salt/modules/saltcheck.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/salt/modules/saltcheck.py b/salt/modules/saltcheck.py index 35bcb1111b3..222f4eb7eec 100644 --- a/salt/modules/saltcheck.py +++ b/salt/modules/saltcheck.py @@ -321,7 +321,7 @@ try: from junit_xml import TestCase, TestSuite HAS_JUNIT = True -except (ImportError, ModuleNotFoundError): +except ImportError: HAS_JUNIT = False @@ -354,10 +354,8 @@ def run_test(**kwargs): :param keyword arg test: - CLI Example: - .. code-block:: bash salt '*' saltcheck.run_test @@ -382,10 +380,8 @@ def state_apply(state_name, **kwargs): Reference the :py:func:`state.apply ` module documentation for arguments and usage options - CLI Example: - .. code-block:: bash salt '*' saltcheck.state_apply postfix @@ -411,10 +407,8 @@ def report_highstate_tests(saltenv=None): Report on tests for states assigned to the minion through highstate. Quits with the exit code for the number of missing tests. - CLI Example: - .. code-block:: bash salt '*' saltcheck.report_highstate_tests @@ -460,10 +454,8 @@ def run_state_tests( :param bool only_fails: boolean to only print failure results :param bool junit: boolean to print results in junit format - CLI Example: - .. code-block:: bash salt '*' saltcheck.run_state_tests postfix,common @@ -564,10 +556,8 @@ def run_highstate_tests(saltenv=None, only_fails=False, junit=False): :param bool only_fails: boolean to only print failure results :param bool junit: boolean to print results in junit format - CLI Example: - .. code-block:: bash salt '*' saltcheck.run_highstate_tests