From a787ebf4e965aeb278027f560ebc5b748b7c9877 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Thu, 25 May 2023 19:17:02 -0400 Subject: [PATCH] mgr/orchestrator: reformat ceph.deployment.service_spec import line MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Quoting https://peps.python.org/pep-0008/#maximum-line-length ``` The preferred way of wrapping long lines is by using Python’s implied line continuation inside parentheses, brackets and braces. Long lines can be broken over multiple lines by wrapping expressions in parentheses. These should be used in preference to using a backslash for line continuation. ``` I also think it is much more readable and is similar to the style applied by automated code formatting tools like `black`. Signed-off-by: John Mulligan (cherry picked from commit 5cc6f0a147247799478556e01b397f3ee6599f2e) --- src/pybind/mgr/orchestrator/_interface.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/orchestrator/_interface.py b/src/pybind/mgr/orchestrator/_interface.py index 62123c3ea56..2c6458e81fd 100644 --- a/src/pybind/mgr/orchestrator/_interface.py +++ b/src/pybind/mgr/orchestrator/_interface.py @@ -30,8 +30,16 @@ except ImportError: import yaml from ceph.deployment import inventory -from ceph.deployment.service_spec import ServiceSpec, NFSServiceSpec, RGWSpec, \ - IscsiServiceSpec, IngressSpec, SNMPGatewaySpec, MDSSpec, TunedProfileSpec +from ceph.deployment.service_spec import ( + IngressSpec, + IscsiServiceSpec, + MDSSpec, + NFSServiceSpec, + RGWSpec, + SNMPGatewaySpec, + ServiceSpec, + TunedProfileSpec, +) from ceph.deployment.drive_group import DriveGroupSpec from ceph.deployment.hostspec import HostSpec, SpecValidationError from ceph.utils import datetime_to_str, str_to_datetime -- 2.39.5