]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orch: drop __all__ from __init__.py
authorSebastian Wagner <sebastian.wagner@suse.com>
Mon, 22 Feb 2021 12:00:34 +0000 (13:00 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 9 Mar 2021 09:18:50 +0000 (10:18 +0100)
`__all__` is only required if you want to modify the `form .. import *`
behavior. We don't need it.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit b8dbdb6530ce3ce98df42abc3825e0876cf8388a)

src/pybind/mgr/orchestrator/__init__.py

index 63f93092f2c9fb33b4d3c3590ce1b2fc3954a3f0..374d68d32562b2096ba723e87fcbb387f599c31b 100644 (file)
@@ -1,4 +1,4 @@
-from __future__ import absolute_import
+# flake8: noqa
 
 from .module import OrchestratorCli
 
@@ -14,38 +14,7 @@ from ._interface import \
     InventoryHost, DeviceLightLoc, \
     UpgradeStatusSpec, daemon_type_to_service, service_to_daemon_types
 
-__all__ = [
-    'OrchestratorCli',
-    'Completion',
-    'TrivialReadCompletion',
-    'raise_if_exception',
-    'ProgressReference',
-    'pretty_print',
-    '_Promise',
-    'CLICommand',
-    '_cli_write_command',
-    '_cli_read_command',
-    'CLICommandMeta',
-    'Orchestrator',
-    'OrchestratorClientMixin',
-    'OrchestratorValidationError',
-    'OrchestratorError',
-    'NoOrchestrator',
-    'ServiceDescription',
-    'InventoryFilter',
-    'HostSpec',
-    'DaemonDescription',
-    'OrchestratorEvent',
-    'set_exception_subject',
-    'InventoryHost',
-    'DeviceLightLoc',
-    'UpgradeStatusSpec',
-    'daemon_type_to_service',
-    'service_to_daemon_types',
-
-]
 
 import os
 if 'UNITTEST' in os.environ:
     import tests
-    __all__.append(tests.__name__)