Skip to content

Commit

Permalink
mgr/orchestrator: clean up import style
Browse files Browse the repository at this point in the history
In the seemingly never-ending fight against line continuations and just
blatting tons of stuff onto single lines another small victory is won.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
  • Loading branch information
phlogistonjohn committed Mar 21, 2024
1 parent 07b4490 commit 96456aa
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions src/pybind/mgr/orchestrator/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,32 @@
from mgr_module import MgrModule, HandleCommandResult, Option
from object_format import Format

from ._interface import OrchestratorClientMixin, DeviceLightLoc, _cli_read_command, \
raise_if_exception, _cli_write_command, OrchestratorError, \
NoOrchestrator, OrchestratorValidationError, NFSServiceSpec, \
RGWSpec, InventoryFilter, InventoryHost, HostSpec, CLICommandMeta, \
ServiceDescription, DaemonDescription, IscsiServiceSpec, json_to_generic_spec, \
GenericSpec, DaemonDescriptionStatus, SNMPGatewaySpec, MDSSpec, TunedProfileSpec, \
NvmeofServiceSpec
from ._interface import (
CLICommandMeta,
DaemonDescription,
DaemonDescriptionStatus,
DeviceLightLoc,
GenericSpec,
HostSpec,
InventoryFilter,
InventoryHost,
IscsiServiceSpec,
MDSSpec,
NFSServiceSpec,
NoOrchestrator,
NvmeofServiceSpec,
OrchestratorClientMixin,
OrchestratorError,
OrchestratorValidationError,
RGWSpec,
SNMPGatewaySpec,
ServiceDescription,
TunedProfileSpec,
_cli_read_command,
_cli_write_command,
json_to_generic_spec,
raise_if_exception,
)


def nice_delta(now: datetime.datetime, t: Optional[datetime.datetime], suffix: str = '') -> str:
Expand Down

0 comments on commit 96456aa

Please sign in to comment.